From ee860770b97b35930b8977501a584d6b654f2c5b Mon Sep 17 00:00:00 2001 From: Maurane GLAUDE Date: Tue, 10 Dec 2024 14:13:14 +0100 Subject: [PATCH] chore(commands): reformat code --- tests/integration/test_integration_token_end_to_end.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/integration/test_integration_token_end_to_end.py b/tests/integration/test_integration_token_end_to_end.py index 6efba01df3..f271f666f8 100644 --- a/tests/integration/test_integration_token_end_to_end.py +++ b/tests/integration/test_integration_token_end_to_end.py @@ -183,8 +183,9 @@ def test_nominal_case_of_an_api_user(client: TestClient, admin_access_token: str # Some commands, such as those that modify study configurations, are run by admin user # Thus the `user_name` for such type of command will be the admin's name # Here we detect those commands by their `action` and their `target` values - if (command["action"] == 'update_playlist' or - (command["action"] == 'update_config' and 'settings/generaldata' in command["args"]["target"])): + if command["action"] == "update_playlist" or ( + command["action"] == "update_config" and "settings/generaldata" in command["args"]["target"] + ): assert command["user_name"] == "admin" else: assert command["user_name"] == "admin_bot"