Skip to content

Commit 8b3880d

Browse files
Added version guard to test and adjusted .yaml file to enable notifications
1 parent 3525f7a commit 8b3880d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

bioblend/_tests/TestGalaxyNotifications.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,10 @@ def test_delete_notifications(self):
387387
def test_update_broadcasted_notification(self):
388388
# WARNING: This test sends notifications
389389
# and only admins can send them
390+
if not self.gi.config.get_config()["enable_notification_system"]:
391+
self.skipTest("This Galaxy instance is not configured to use notifications.")
392+
if not self.gi.users.get_current_user()["is_admin"]:
393+
self.skipTest("This tests requires the current user to be an admin, which is not the case.")
390394

391395
# Broadcast a notification
392396
created_response = self._send_test_broadcast_notification(

bioblend/_tests/template_galaxy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ galaxy:
1717
master_api_key: $BIOBLEND_GALAXY_MASTER_API_KEY
1818
enable_quotas: true
1919
cleanup_job: onsuccess
20+
enable_notification_system: true

0 commit comments

Comments
 (0)