Skip to content

Commit

Permalink
chore(commands): reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
maugde committed Dec 10, 2024
1 parent b81a9a5 commit ee86077
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/integration/test_integration_token_end_to_end.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit ee86077

Please sign in to comment.