Skip to content

Commit

Permalink
Merge pull request #118 from simonsobs/dependabot/pip/ci/latest/straw…
Browse files Browse the repository at this point in the history
…berry-graphql-0.242.0

Bump strawberry-graphql from 0.239.2 to 0.242.0 in /ci/latest
  • Loading branch information
TaiSakuma authored Sep 24, 2024
2 parents b451409 + 1c08e48 commit 2b593ce
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ci/latest/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ nextline==0.7.16
apluggy==1.0.1
dynaconf==3.2.6
starlette==0.38.5
strawberry-graphql==0.239.2
strawberry-graphql==0.242.0
websockets==13.1
rich==13.8.1
async-asgi-testclient==1.4.11
Expand Down
2 changes: 1 addition & 1 deletion ci/minimum/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ nextline==0.7.15
apluggy==1.0.0
dynaconf==3.2.1
starlette==0.31.0
strawberry-graphql==0.213.0
strawberry-graphql==0.240.0
websockets==12.0.0
rich==13.6.0
async-asgi-testclient==1.4.0
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ dependencies = [
"apluggy>=1.0",
"dynaconf>=3.2",
"starlette>=0.31",
"strawberry-graphql>=0.213",
"strawberry-graphql>=0.240",
"websockets>=12.0",
"rich>=13.6",
"async-asgi-testclient>=1.4",
Expand Down
8 changes: 4 additions & 4 deletions tests/plugins/ctrl/schema/test_run.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import asyncio
from collections.abc import AsyncIterator
from pathlib import Path
from typing import Any

from graphql import ExecutionResult as GraphQLExecutionResult
from nextline import Nextline
from nextline.utils import agen_with_wait
from strawberry.types import ExecutionResult
Expand Down Expand Up @@ -133,13 +133,13 @@ async def _subscribe_continuous_enabled(schema: Schema, context: Any) -> list[bo

async def _control_execution(schema: Schema, context: Any) -> None:
sub = await schema.subscribe(SUBSCRIBE_TRACE_IDS, context_value=context)
assert not isinstance(sub, GraphQLExecutionResult)
assert isinstance(sub, AsyncIterator)

agen = agen_with_wait(sub)

prev_ids = set[int]()
async for result in agen:
assert isinstance(result, GraphQLExecutionResult)
assert isinstance(result, ExecutionResult)
assert (data := result.data)
trace_ids: list[int] = data['ctrlTraceIds']
if not (ids := set(trace_ids)):
Expand All @@ -164,7 +164,7 @@ async def _control_trace(schema: Schema, context: Any, trace_no: int) -> None:
context_value=context,
variable_values={'traceId': trace_no},
)
assert not isinstance(sub, GraphQLExecutionResult)
assert isinstance(sub, AsyncIterator)

async for result in sub:
assert (data := result.data)
Expand Down

0 comments on commit 2b593ce

Please sign in to comment.