Skip to content

Commit

Permalink
Added version guard to test and adjusted .yaml file to enable notific…
Browse files Browse the repository at this point in the history
…ations
  • Loading branch information
heisner-tillman committed Oct 6, 2023
1 parent 57a17df commit 3902d46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bioblend/_tests/TestGalaxyNotifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,10 @@ def test_delete_notifications(self):
def test_update_broadcasted_notification(self):
# WARNING: This test sends notifications
# and only admins can send them
if not self.gi.config.get_config()["enable_notification_system"]:
self.skipTest("This Galaxy instance is not configured to use notifications.")
if not self.gi.users.get_current_user()["is_admin"]:
self.skipTest("This tests requires the current user to be an admin, which is not the case.")

# Broadcast a notification
created_response = self._send_test_broadcast_notification(
Expand Down
1 change: 1 addition & 0 deletions bioblend/_tests/template_galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ galaxy:
master_api_key: $BIOBLEND_GALAXY_MASTER_API_KEY
enable_quotas: true
cleanup_job: onsuccess
enable_notification_system: true

0 comments on commit 3902d46

Please sign in to comment.