Skip to content

Commit

Permalink
Fix failing test due to random order of ids
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorjerse committed Nov 8, 2023
1 parent e5a4dd9 commit 193ec3a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions resolwe/flow/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1420,10 +1420,7 @@ def test_bulk_delete(self):
request_path, data={"ids": [collection1.pk, collection2.pk]}, format="json"
)
self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN)
self.assertEqual(
response.data["detail"],
f"No permission to delete objects with ids {collection1.pk}, {collection2.pk}.",
)
self.assertEqual(response.data["detail"], "No permission to delete objects")
self.assertTrue(Collection.objects.filter(pk=collection1.pk).exists())
self.assertTrue(Collection.objects.filter(pk=collection2.pk).exists())

Expand Down

0 comments on commit 193ec3a

Please sign in to comment.