Skip to content

Commit

Permalink
fix: changed notification app name
Browse files Browse the repository at this point in the history
fix: changed notification app name
  • Loading branch information
AhtishamShahid committed May 6, 2024
1 parent b42e68d commit a056bbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openassessment/xblock/test/test_notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def test_send_staff_notification(self, mock_send_event):
self.assertEqual(notification_data.content_context['ora_name'], ora_name)
self.assertEqual(notification_data.notification_type, 'ora_staff_notification')
self.assertEqual(notification_data.content_url, f"/{problem_id}")
self.assertEqual(notification_data.app_name, "ora")
self.assertEqual(notification_data.app_name, "grading")
self.assertEqual(notification_data.audience_filters['course_roles'], ['staff', 'instructor'])

@patch('openassessment.xblock.utils.notifications.logger.error')
Expand Down
2 changes: 1 addition & 1 deletion openassessment/xblock/utils/notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def send_staff_notification(course_id, problem_id, ora_name):
},
notification_type='ora_staff_notification',
content_url=f"{getattr(settings, 'ORA_GRADING_MICROFRONTEND_URL', '')}/{problem_id}",
app_name="ora",
app_name="grading",
audience_filters=audience_filters,
)
COURSE_NOTIFICATION_REQUESTED.send_event(course_notification_data=notification_data)
Expand Down

0 comments on commit a056bbd

Please sign in to comment.