diff --git a/tests/execution/test_defer.py b/tests/execution/test_defer.py index d3ae8568..6ca1984b 100644 --- a/tests/execution/test_defer.py +++ b/tests/execution/test_defer.py @@ -349,7 +349,6 @@ async def can_defer_fragments_containing_scalar_types(): } } fragment NameFragment on Hero { - id name } """ @@ -359,9 +358,7 @@ async def can_defer_fragments_containing_scalar_types(): assert result == [ {"data": {"hero": {"id": "1"}}, "hasNext": True}, { - "incremental": [ - {"data": {"id": "1", "name": "Luke"}, "path": ["hero"]} - ], + "incremental": [{"data": {"name": "Luke"}, "path": ["hero"]}], "hasNext": False, }, ] @@ -507,12 +504,11 @@ async def can_defer_a_fragment_within_an_already_deferred_fragment(): """ query HeroNameQuery { hero { - id ...TopFragment @defer(label: "DeferTop") } } fragment TopFragment on Hero { - name + id ...NestedFragment @defer(label: "DeferNested") } fragment NestedFragment on Hero { @@ -525,7 +521,7 @@ async def can_defer_a_fragment_within_an_already_deferred_fragment(): result = await complete(document) assert result == [ - {"data": {"hero": {"id": "1"}}, "hasNext": True}, + {"data": {"hero": {}}, "hasNext": True}, { "incremental": [ { @@ -540,7 +536,7 @@ async def can_defer_a_fragment_within_an_already_deferred_fragment(): "label": "DeferNested", }, { - "data": {"name": "Luke"}, + "data": {"id": "1"}, "path": ["hero"], "label": "DeferTop", }, @@ -555,7 +551,6 @@ async def can_defer_a_fragment_that_is_also_not_deferred_with_deferred_first(): """ query HeroNameQuery { hero { - id ...TopFragment @defer(label: "DeferTop") ...TopFragment } @@ -568,7 +563,7 @@ async def can_defer_a_fragment_that_is_also_not_deferred_with_deferred_first(): result = await complete(document) assert result == [ - {"data": {"hero": {"id": "1", "name": "Luke"}}, "hasNext": True}, + {"data": {"hero": {"name": "Luke"}}, "hasNext": True}, { "incremental": [ { @@ -587,7 +582,6 @@ async def can_defer_a_fragment_that_is_also_not_deferred_with_non_deferred_first """ query HeroNameQuery { hero { - id ...TopFragment ...TopFragment @defer(label: "DeferTop") } @@ -600,7 +594,7 @@ async def can_defer_a_fragment_that_is_also_not_deferred_with_non_deferred_first result = await complete(document) assert result == [ - {"data": {"hero": {"id": "1", "name": "Luke"}}, "hasNext": True}, + {"data": {"hero": {"name": "Luke"}}, "hasNext": True}, { "incremental": [ {