Skip to content

Commit

Permalink
add response detail check
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkonie committed Feb 26, 2025
1 parent b6aec5c commit 98657c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions samplesheets/tests/test_views_api_taskflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
IRODS_QUERY_ERROR_MSG,
SAMPLESHEETS_API_MEDIA_TYPE,
SAMPLESHEETS_API_DEFAULT_VERSION,
FILE_EXISTS_RESTRICT_MSG,
)

# SODAR constants
Expand Down Expand Up @@ -1228,6 +1229,7 @@ def test_get_restrict(self):
token=self.get_token(user_no_roles),
)
self.assertEqual(response.status_code, 403)
self.assertEqual(response.data['detail'], FILE_EXISTS_RESTRICT_MSG)


class TestProjectIrodsFileListAPIView(SampleSheetAPITaskflowTestBase):
Expand Down

0 comments on commit 98657c7

Please sign in to comment.