Skip to content

Commit

Permalink
Adapt test_show_permission_denied to expect 403 status code
Browse files Browse the repository at this point in the history
  • Loading branch information
davelopez committed Dec 14, 2021
1 parent ec33664 commit 0e558e0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/galaxy_test/api/test_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ def test_show_permission_denied(self):
self.dataset_populator.make_private(history_id=self.history_id, dataset_id=hda['id'])
with self._different_user():
show_response = self._get(f"datasets/{hda['id']}")
self._assert_status_code_is(show_response, 400)
assert show_response.json()['err_msg'] == 'You are not allowed to access this dataset'
self._assert_status_code_is(show_response, 403)

def test_admin_can_update_permissions(self):
# Create private dataset
Expand Down

0 comments on commit 0e558e0

Please sign in to comment.