Skip to content

Commit

Permalink
fix filter v2 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
devkral committed Mar 19, 2024
1 parent a286dff commit 7eb8ec6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/filters/test_filters_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ def fruits(self, filters: FruitFilter) -> List[Fruit]:
)

query = utils.generate_query(Query)
result = query('{ fruits(filters: { name: { exact: "strawberry" } }) { id name } }')
result = query('{ fruits(filters: { name: { exact: "strawberry" } }) { name } }')
assert isinstance(result, ExecutionResult)
assert not result.errors
assert result.data is not None
Expand Down Expand Up @@ -426,11 +426,11 @@ def helper():

query = utils.generate_query(Query)
result = await query( # type: ignore
'{ fruits(filters: { name: { exact: "strawberry" } }) { id name } }'
'{ fruits(filters: { name: { exact: "strawberry" } }) { name } }'
)
assert isinstance(result, ExecutionResult)
assert not result.errors
assert result.data is not None
assert result.data["fruits"] == [
{"id": "1", "name": "strawberry"},
{"name": "strawberry"},
]

0 comments on commit 7eb8ec6

Please sign in to comment.