1616)
1717
1818
19+ @test_util .skip_unless_galaxy ("release_23.1" )
1920class TestGalaxyNotifications (GalaxyTestBase .GalaxyTestBase ):
20- @test_util .skip_unless_galaxy ("release_23.1" )
2121 def test_notification_status (self ):
2222 # WARNING: This test includes user creation
2323 # and only admins can create users
@@ -86,7 +86,6 @@ def test_notification_status(self):
8686 assert len (status ["broadcasts" ]) == 1
8787 assert status ["broadcasts" ][0 ]["content" ]["message" ] == "test_notification_status 3"
8888
89- @test_util .skip_unless_galaxy ("release_23.1" )
9089 def test_empty_notification_status (self ):
9190 if not self .gi .config .get_config ()["enable_notification_system" ]:
9291 self .skipTest ("This Galaxy instance is not configured to use notifications." )
@@ -105,7 +104,6 @@ def test_empty_notification_status(self):
105104 assert status ["broadcasts" ] == []
106105 assert status ["notifications" ] == []
107106
108- @test_util .skip_unless_galaxy ("release_23.1" )
109107 def test_notification_preferences (self ):
110108 if not self .gi .config .get_config ()["enable_notification_system" ]:
111109 self .skipTest ("This Galaxy instance is not configured to use notifications." )
@@ -140,7 +138,6 @@ def test_notification_preferences(self):
140138 assert new_items_preferences ["enabled" ] is False
141139 assert new_items_preferences ["channels" ]["push" ] is False
142140
143- @test_util .skip_unless_galaxy ("release_23.1" )
144141 def test_get_user_notifications (self ):
145142 # WARNING: This test sends notifications
146143 # and only admins can send them
@@ -193,7 +190,6 @@ def test_get_user_notifications(self):
193190 assert created_response_4 [0 ]["content" ]["message" ] == "test_notification_status 2"
194191 assert created_response_4 [1 ]["content" ]["message" ] == "test_notification_status 3"
195192
196- @test_util .skip_unless_galaxy ("release_23.1" )
197193 def test_get_broadcasted (self ):
198194 # WARNING: This test sends notifications
199195 # and only admins can send them
@@ -215,7 +211,6 @@ def test_get_broadcasted(self):
215211 assert broadcast ["content" ]["action_links" ][1 ]["action_name" ] == "link_2"
216212 assert broadcast ["content" ]["action_links" ][1 ]["link" ] == "https://link2.de"
217213
218- @test_util .skip_unless_galaxy ("release_23.1" )
219214 def test_get_all_broadcasted (self ):
220215 # WARNING: This test sends notifications
221216 # and only admins can send them
@@ -237,7 +232,6 @@ def test_get_all_broadcasted(self):
237232 assert broadcasts [0 ]["content" ]["message" ] == "test_notification_status 1"
238233 assert broadcasts [1 ]["content" ]["message" ] == "test_notification_status 2"
239234
240- @test_util .skip_unless_galaxy ("release_23.1" )
241235 def test_show_notification (self ):
242236 # WARNING: This test sends notifications
243237 # and only admins can send them
@@ -264,7 +258,6 @@ def test_show_notification(self):
264258 # check that the content is correct
265259 assert notification ["content" ]["message" ] == "test_notification_status"
266260
267- @test_util .skip_unless_galaxy ("release_23.1" )
268261 def test_update_notifications (self ):
269262 # WARNING: This test includes user creation
270263 # and only admins can create users
@@ -345,7 +338,6 @@ def test_update_notifications(self):
345338 assert notification_2 ["seen_time" ] is None
346339 assert notification_2 ["deleted" ] is False
347340
348- @test_util .skip_unless_galaxy ("release_23.1" )
349341 def test_delete_notifications (self ):
350342 # WARNING: This test includes user creation
351343 # and only admins can create users
@@ -383,7 +375,6 @@ def test_delete_notifications(self):
383375 response_2 = user_gi .notifications .delete_user_notifications ([notification_2_id , notification_3_id ])
384376 assert response_2 ["updated_count" ] == 2
385377
386- @test_util .skip_unless_galaxy ("release_23.1" )
387378 def test_update_broadcasted_notification (self ):
388379 # WARNING: This test sends notifications
389380 # and only admins can send them
0 commit comments