Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Nicola Soranzo <[email protected]>
  • Loading branch information
bernt-matthias and nsoranzo committed Jul 24, 2024
1 parent f71016b commit 8f11841
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions bioblend/_tests/TestGalaxyQuotas.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ def test_delete_undelete_quota(self):
assert response == "Undeleted 1 quotas: " + self.quota_name

@test_util.skip_unless_galaxy("release_19.09") # for user purging
def test_update_non_default_quote(self):
def test_update_non_default_quota(self):
if self.gi.config.get_config()["use_remote_user"]:
self.skipTest("This Galaxy instance is not configured to use local users")
new_username = test_util.random_string()
new_user_email = f"{new_username}@example.org"
password = test_util.random_string(20)
Expand All @@ -72,5 +74,5 @@ def test_update_non_default_quote(self):
self.gi.quotas.update_quota(quota["id"], default="no", amount="200 GB")

if self.gi.config.get_config()["allow_user_deletion"]:
deleted_user = self.gi.users.delete_user(new_user["id"])
purged_user = self.gi.users.delete_user(new_user["id"], purge=True)
self.gi.users.delete_user(new_user["id"])
self.gi.users.delete_user(new_user["id"], purge=True)

0 comments on commit 8f11841

Please sign in to comment.