File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
services/director-v2/tests/unit/with_dbs Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff 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
288289async 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 ,
You can’t perform that action at this time.
0 commit comments