Skip to content

Commit f8e4f53

Browse files
committed
type: Add not None assertion to tests
1 parent 778822c commit f8e4f53

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/test_graphql.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,7 @@ def test_converter_structure_with_snapshots() -> None:
337337
response = converter.structure(data, GraphQLResponse)
338338

339339
assert isinstance(response, GraphQLResponse)
340+
assert response.datasets.edges[0] is not None
340341
node = response.datasets.edges[0].node
341342
assert node.id == "ds000001"
342343
assert node.latestSnapshot.tag == "2.0.0"
@@ -371,6 +372,7 @@ def test_converter_structure_without_snapshots() -> None:
371372
response = converter.structure(data, GraphQLResponse)
372373

373374
assert isinstance(response, GraphQLResponse)
375+
assert response.datasets.edges[0] is not None
374376
node = response.datasets.edges[0].node
375377
assert node.id == "ds000001"
376378
assert node.latestSnapshot.tag == "1.0.0"

0 commit comments

Comments
 (0)