Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump black from 24.4.2 to 24.8.0 in /ci/latest #72

Merged
merged 2 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ci/latest/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ nextline-graphql==0.7.9
transitions==0.9.2
httpx==0.27.0
hypothesis==6.105.1
black==24.4.2
black==24.8.0
pytest-asyncio==0.23.7
pytest-cov==5.0.0
pytest==8.3.2
Expand Down
2 changes: 2 additions & 0 deletions tests/schema/mutations/test_queue_push.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from deepdiff import DeepDiff
from hypothesis import Phase, given, settings
from hypothesis import strategies as st
from strawberry.types import ExecutionResult

from nextline_schedule.graphql import MUTATE_QUEUE_PUSH
from nextline_schedule.queue.strategies import Queue, st_push_arg, st_queue
Expand Down Expand Up @@ -40,6 +41,7 @@ async def test_schema(queue: Queue, input: Input, schema: Schema) -> None:
context_value=context_values,
variable_values=variable_values,
)
assert isinstance(resp, ExecutionResult)
assert (data := resp.data)
assert_data(data, input)
assert_queue_item(queue, data, input, len_ini)
Expand Down
2 changes: 2 additions & 0 deletions tests/schema/queries/test_queue_items.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from hypothesis import given
from strawberry.types import ExecutionResult

from nextline_schedule.graphql import QUERY_QUEUE_ITEMS
from nextline_schedule.queue.strategies import Queue, st_queue
Expand All @@ -11,5 +12,6 @@ async def test_schema(queue: Queue, schema: Schema):
context_schedule = {'queue': queue}
context = {'schedule': context_schedule}
resp = await schema.execute(QUERY_QUEUE_ITEMS, context_value=context)
assert isinstance(resp, ExecutionResult)
assert resp.data
assert len(resp.data['schedule']['queue']['items']) == len(queue.items)
3 changes: 3 additions & 0 deletions tests/schema/queries/test_version.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
from strawberry.types import ExecutionResult

import nextline_schedule
from nextline_schedule.graphql import QUERY_VERSION
from tests.schema.conftest import Schema


async def test_schema(schema: Schema) -> None:
resp = await schema.execute(QUERY_VERSION)
assert isinstance(resp, ExecutionResult)
assert resp.data
assert resp.data['schedule']['version'] == nextline_schedule.__version__