mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-25 19:14:11 +03:00
Fix test main (#1126)
Co-authored-by: Thomas Leonard <thomas@loftorbital.com>
This commit is contained in:
parent
c3404a9793
commit
4573d3db53
|
@ -101,14 +101,14 @@ def test_range_filter_with_invalid_input():
|
||||||
# Empty list
|
# Empty list
|
||||||
result = schema.execute(query, variables={"rangeValue": []})
|
result = schema.execute(query, variables={"rangeValue": []})
|
||||||
assert len(result.errors) == 1
|
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
|
# Only one item in the list
|
||||||
result = schema.execute(query, variables={"rangeValue": [1]})
|
result = schema.execute(query, variables={"rangeValue": [1]})
|
||||||
assert len(result.errors) == 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
|
# More than 2 items in the list
|
||||||
result = schema.execute(query, variables={"rangeValue": [1, 2, 3]})
|
result = schema.execute(query, variables={"rangeValue": [1, 2, 3]})
|
||||||
assert len(result.errors) == 1
|
assert len(result.errors) == 1
|
||||||
assert result.errors[0].message == f"['{expected_error}']"
|
assert result.errors[0].message == expected_error
|
||||||
|
|
Loading…
Reference in New Issue
Block a user