From 4573d3db53529fe7ae17a0d342ff626158eb23b6 Mon Sep 17 00:00:00 2001 From: Jason Kraus Date: Sat, 20 Feb 2021 14:26:06 -0800 Subject: [PATCH] Fix test main (#1126) Co-authored-by: Thomas Leonard --- graphene_django/filter/tests/test_range_filter.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/graphene_django/filter/tests/test_range_filter.py b/graphene_django/filter/tests/test_range_filter.py index 995f5889c..644ec5df4 100644 --- a/graphene_django/filter/tests/test_range_filter.py +++ b/graphene_django/filter/tests/test_range_filter.py @@ -101,14 +101,14 @@ def test_range_filter_with_invalid_input(): # Empty list result = schema.execute(query, variables={"rangeValue": []}) assert len(result.errors) == 1 - assert result.errors[0].message == f"['{expected_error}']" + assert result.errors[0].message == expected_error # Only one item in the list result = schema.execute(query, variables={"rangeValue": [1]}) assert len(result.errors) == 1 - assert result.errors[0].message == f"['{expected_error}']" + assert result.errors[0].message == expected_error # More than 2 items in the list result = schema.execute(query, variables={"rangeValue": [1, 2, 3]}) assert len(result.errors) == 1 - assert result.errors[0].message == f"['{expected_error}']" + assert result.errors[0].message == expected_error