Skip to content

Commit

Permalink
fix TestIrodsAccessTicketCreateView test failures (#2026)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkonie committed Oct 11, 2024
1 parent bd30196 commit 54857e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ Fixed
- **Samplesheets**
- Timeline event status not updated in ``SheetDeleteVieW`` with iRODS collections enabled (#1798)
- Assay plugin ``update_row()`` setting links for empty file names (#2017)
- Sporadic test failure in ``TestIrodsAccessTicketCreateView`` (#2026)

Removed
-------
Expand Down
12 changes: 5 additions & 7 deletions samplesheets/tests/test_views_taskflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -778,13 +778,11 @@ def test_post_contributor(self):
self.assertEqual(self.get_tl_event_count('create'), 1)
# Both owners should receive alert
self.assertEqual(self.get_app_alert_count('create'), 2)
self.assertListEqual(
[
a.user
for a in AppAlert.objects.filter(
alert_name='irods_ticket_create'
)
],
alerts = AppAlert.objects.filter(
alert_name='irods_ticket_create'
).order_by('user__username')
self.assertEqual(
[a.user for a in alerts],
[self.user, self.user_owner_cat],
)

Expand Down

0 comments on commit 54857e7

Please sign in to comment.