Skip to content

Commit

Permalink
Fix ruff errors
Browse files Browse the repository at this point in the history
```
C405 Unnecessary `list` literal (rewrite as a `set` literal)
```
  • Loading branch information
bernt-matthias committed Jun 7, 2024
1 parent 8038bde commit 825ae37
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/integration/test_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from galaxy_test.driver import integration_util

USER_SUMMARY_KEYS = set(["model_class", "id", "email", "username", "deleted", "active", "last_password_change"])
USER_SUMMARY_KEYS = {"model_class", "id", "email", "username", "deleted", "active", "last_password_change"}


class UsersIntegrationCase(integration_util.IntegrationTestCase):
Expand Down Expand Up @@ -57,7 +57,7 @@ class TestExposeUsersIntegration(UsersIntegrationCase):
expose_user_email = True

# Since we allow to expose user information, all users are returned.
expected_limited_user_keys = set(["id", "username", "email"])
expected_limited_user_keys = {"id", "username", "email"}
expected_regular_user_list_count = 3


Expand All @@ -67,7 +67,7 @@ class TestExposeOnlyUserNameIntegration(UsersIntegrationCase):

# When only username is exposed, only that field is returned in the user list.
# Since we are exposing user information, all users are returned.
expected_limited_user_keys = set(["id", "username"])
expected_limited_user_keys = {"id", "username"}
expected_regular_user_list_count = 3


Expand All @@ -77,7 +77,7 @@ class TestExposeOnlyUserEmailIntegration(UsersIntegrationCase):

# When only email is exposed, only that field is returned in the user list.
# Since we are exposing user information, all users are returned.
expected_limited_user_keys = set(["id", "email"])
expected_limited_user_keys = {"id", "email"}
expected_regular_user_list_count = 3


Expand Down

0 comments on commit 825ae37

Please sign in to comment.