Skip to content

Commit

Permalink
Fix coverage and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito committed Feb 11, 2024
1 parent 04c4dd1 commit 4aeece0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/execution/test_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -1187,11 +1187,10 @@ async def friend_list(_info):
}

@pytest.mark.asyncio()
@pytest.mark.filterwarnings("ignore:.* was never awaited:RuntimeWarning")
async def filters_payloads_that_are_nulled_by_a_later_synchronous_error():
document = parse(
"""
query {
query {
nestedObject {
nestedFriendList @stream(initialCount: 0) {
name
Expand All @@ -1203,8 +1202,8 @@ async def filters_payloads_that_are_nulled_by_a_later_synchronous_error():
)

async def friend_list(_info):
await sleep(0)
yield friends[0]
await sleep(0) # pragma: no cover
yield friends[0] # pragma: no cover

result = await complete(
document,
Expand Down

0 comments on commit 4aeece0

Please sign in to comment.