Skip to content

Commit

Permalink
Fix test main (#1126)
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Leonard <thomas@loftorbital.com>
  • Loading branch information
zbyte64 and Thomas Leonard committed Feb 20, 2021
1 parent c3404a9 commit 4573d3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions graphene_django/filter/tests/test_range_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4573d3d

Please sign in to comment.