Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkonie committed Jun 26, 2023
1 parent 5c52076 commit 474c9a2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions samplesheets/tests/test_views_ajax_taskflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,8 +520,14 @@ class TestIrodsObjectListAjaxView(TestIrodsRequestViewsBase):

def test_get_empty_coll(self):
"""Test GET request for listing an empty collection in iRODS"""
self.irods.data_objects.get(self.path).unlink(force=True)
self.irods.data_objects.get(self.path_md5).unlink(force=True)
self.irods.data_objects.unlink(self.path, force=True)
self.irods.data_objects.unlink(self.path_md5, force=True)
self.irods.data_objects.unlink(self.path2, force=True)
self.irods.data_objects.unlink(self.path2_md5, force=True)
self.assertEqual(self.irods.data_objects.exists(self.path), False)
self.assertEqual(self.irods.data_objects.exists(self.path_md5), False)
self.assertEqual(self.irods.data_objects.exists(self.path2), False)
self.assertEqual(self.irods.data_objects.exists(self.path2_md5), False)
with self.login(self.user):
response = self.client.get(
reverse(
Expand Down

0 comments on commit 474c9a2

Please sign in to comment.