Skip to content

Commit

Permalink
Merge branch 'topic/update-quota' of github.com:bernt-matthias/bioble…
Browse files Browse the repository at this point in the history
…nd into topic/update-quota
  • Loading branch information
bernt-matthias committed Jul 24, 2024
2 parents b9b13a4 + 8f11841 commit 2966313
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 @@ -73,5 +75,5 @@ def test_update_non_default_quote(self):
self.gi.quotas.update_quota(quota["id"], default=None, 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 2966313

Please sign in to comment.