From ca601a6ecdd7eabd74cb13b9f983b4f87f230b71 Mon Sep 17 00:00:00 2001 From: Matthias Bernt Date: Thu, 25 Jul 2024 11:42:35 +0200 Subject: [PATCH] fix linting --- bioblend/_tests/TestGalaxyQuotas.py | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/bioblend/_tests/TestGalaxyQuotas.py b/bioblend/_tests/TestGalaxyQuotas.py index 3b27755a6..a963cfa5c 100644 --- a/bioblend/_tests/TestGalaxyQuotas.py +++ b/bioblend/_tests/TestGalaxyQuotas.py @@ -58,22 +58,26 @@ def test_delete_undelete_quota(self): @test_util.skip_unless_galaxy("release_19.09") # for user purging def test_update_non_default_quota(self): + """ + test if a non default quota can be updated (needs to use default=None, + default="no" will fail) + """ 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) new_user = self.gi.users.create_local_user(new_username, new_user_email, password) - print(new_user) - quota = self.gi.quotas.create_quota(name="non_default_quota", description="testing", - amount="100 GB", - operation="+", - in_users=[new_user['id']], - ) - print(quota) + quota = self.gi.quotas.create_quota( + name="non_default_quota", + description="testing", + amount="100 GB", + operation="+", + in_users=[new_user["id"]], + ) self.gi.quotas.update_quota(quota["id"], default=None, amount="200 GB") if self.gi.config.get_config()["allow_user_deletion"]: self.gi.users.delete_user(new_user["id"]) - self.gi.users.delete_user(new_user["id"], purge=True) \ No newline at end of file + self.gi.users.delete_user(new_user["id"], purge=True)