Skip to content

Commit

Permalink
Move duplicated annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
heisner-tillman committed Oct 6, 2023
1 parent 3902d46 commit 2199b52
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions bioblend/_tests/TestGalaxyNotifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
)


@test_util.skip_unless_galaxy("release_23.1")
class TestGalaxyNotifications(GalaxyTestBase.GalaxyTestBase):
@test_util.skip_unless_galaxy("release_23.1")
def test_notification_status(self):
# WARNING: This test includes user creation
# and only admins can create users
Expand Down Expand Up @@ -86,7 +86,6 @@ def test_notification_status(self):
assert len(status["broadcasts"]) == 1
assert status["broadcasts"][0]["content"]["message"] == "test_notification_status 3"

@test_util.skip_unless_galaxy("release_23.1")
def test_empty_notification_status(self):
if not self.gi.config.get_config()["enable_notification_system"]:
self.skipTest("This Galaxy instance is not configured to use notifications.")
Expand All @@ -105,7 +104,6 @@ def test_empty_notification_status(self):
assert status["broadcasts"] == []
assert status["notifications"] == []

@test_util.skip_unless_galaxy("release_23.1")
def test_notification_preferences(self):
if not self.gi.config.get_config()["enable_notification_system"]:
self.skipTest("This Galaxy instance is not configured to use notifications.")
Expand Down Expand Up @@ -140,7 +138,6 @@ def test_notification_preferences(self):
assert new_items_preferences["enabled"] is False
assert new_items_preferences["channels"]["push"] is False

@test_util.skip_unless_galaxy("release_23.1")
def test_get_user_notifications(self):
# WARNING: This test sends notifications
# and only admins can send them
Expand Down Expand Up @@ -193,7 +190,6 @@ def test_get_user_notifications(self):
assert created_response_4[0]["content"]["message"] == "test_notification_status 2"
assert created_response_4[1]["content"]["message"] == "test_notification_status 3"

@test_util.skip_unless_galaxy("release_23.1")
def test_get_broadcasted(self):
# WARNING: This test sends notifications
# and only admins can send them
Expand All @@ -215,7 +211,6 @@ def test_get_broadcasted(self):
assert broadcast["content"]["action_links"][1]["action_name"] == "link_2"
assert broadcast["content"]["action_links"][1]["link"] == "https://link2.de"

@test_util.skip_unless_galaxy("release_23.1")
def test_get_all_broadcasted(self):
# WARNING: This test sends notifications
# and only admins can send them
Expand All @@ -237,7 +232,6 @@ def test_get_all_broadcasted(self):
assert broadcasts[0]["content"]["message"] == "test_notification_status 1"
assert broadcasts[1]["content"]["message"] == "test_notification_status 2"

@test_util.skip_unless_galaxy("release_23.1")
def test_show_notification(self):
# WARNING: This test sends notifications
# and only admins can send them
Expand All @@ -264,7 +258,6 @@ def test_show_notification(self):
# check that the content is correct
assert notification["content"]["message"] == "test_notification_status"

@test_util.skip_unless_galaxy("release_23.1")
def test_update_notifications(self):
# WARNING: This test includes user creation
# and only admins can create users
Expand Down Expand Up @@ -345,7 +338,6 @@ def test_update_notifications(self):
assert notification_2["seen_time"] is None
assert notification_2["deleted"] is False

@test_util.skip_unless_galaxy("release_23.1")
def test_delete_notifications(self):
# WARNING: This test includes user creation
# and only admins can create users
Expand Down Expand Up @@ -383,7 +375,6 @@ def test_delete_notifications(self):
response_2 = user_gi.notifications.delete_user_notifications([notification_2_id, notification_3_id])
assert response_2["updated_count"] == 2

@test_util.skip_unless_galaxy("release_23.1")
def test_update_broadcasted_notification(self):
# WARNING: This test sends notifications
# and only admins can send them
Expand Down

0 comments on commit 2199b52

Please sign in to comment.