Fix test main (#1126)

Co-authored-by: Thomas Leonard <thomas@loftorbital.com>
This commit is contained in:
Jason Kraus 2021-02-20 14:26:06 -08:00 committed by GitHub
parent c3404a9793
commit 4573d3db53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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