From e0fa0f6d93ffe653b0130214b0f3c6032f17f589 Mon Sep 17 00:00:00 2001 From: Maurane GLAUDE Date: Thu, 9 Jan 2025 11:31:32 +0100 Subject: [PATCH] chore(commands): reformat code --- antarest/login/utils.py | 2 +- tests/core/test_tasks.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/antarest/login/utils.py b/antarest/login/utils.py index d31f113bc5..449cb0e67c 100644 --- a/antarest/login/utils.py +++ b/antarest/login/utils.py @@ -57,7 +57,7 @@ def get_current_user() -> Optional[JWTUser]: @contextlib.contextmanager -def current_user_context(token: JWTUser) -> t.Iterator[JWTUser|None]: +def current_user_context(token: JWTUser) -> t.Iterator[JWTUser | None]: global _current_user jwt_user = token _current_user.set(jwt_user) diff --git a/tests/core/test_tasks.py b/tests/core/test_tasks.py index d32b73a8ac..e6b16b0245 100644 --- a/tests/core/test_tasks.py +++ b/tests/core/test_tasks.py @@ -568,7 +568,7 @@ def test_ts_generation_task( raw_study.id, repository=study_service.repository, storage_service=study_service.storage_service, - event_bus=study_service.event_bus + event_bus=study_service.event_bus, ) task_id = study_service.task_service.add_task(