Skip to content

Commit 7d5e19d

Browse files
committed
ruff
1 parent b24b892 commit 7d5e19d

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

services/director-v2/tests/unit/with_dbs/test_modules_comp_scheduler_dask_scheduler.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,10 @@ def test_scheduler_raises_exception_for_missing_dependencies(
280280
settings = AppSettings.create_from_envs()
281281
app = init_app(settings)
282282

283-
with pytest.raises(ConfigurationError):
284-
with TestClient(app, raise_server_exceptions=True) as _:
285-
pass
283+
with pytest.raises(ConfigurationError), TestClient(
284+
app, raise_server_exceptions=True
285+
) as _:
286+
pass
286287

287288

288289
async def test_empty_pipeline_is_not_scheduled(
@@ -1029,11 +1030,9 @@ async def test_task_progress_triggers(
10291030
parent_project_id=None,
10301031
),
10311032
)
1032-
await cast(
1033+
await cast( # noqa: SLF001
10331034
DaskScheduler, scheduler
1034-
)._task_progress_change_handler( # noqa: SLF001
1035-
progress_event.json()
1036-
)
1035+
)._task_progress_change_handler(progress_event.json())
10371036
# NOTE: not sure whether it should switch to STARTED.. it would make sense
10381037
await _assert_comp_tasks_db(
10391038
aiopg_engine,

0 commit comments

Comments
 (0)