Skip to content

Commit

Permalink
Adapt API test to expect 403 status code
Browse files Browse the repository at this point in the history
After aplying the fix galaxyproject#13056, `test_sharing_private_history_makes_datasets_public` will now return a proper 403 status code instead of 400.
  • Loading branch information
davelopez committed Dec 14, 2021
1 parent 0e558e0 commit f1bccc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy_test/api/test_histories.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ def test_sharing_private_history_makes_datasets_public(self):
# Other users cannot access the dataset
with self._different_user():
show_response = self._get(f"datasets/{hda_id}")
self._assert_status_code_is(show_response, 400)
self._assert_status_code_is(show_response, 403)

sharing_response = self._set_resource_sharing(history_id, "publish")
assert sharing_response["published"] is True
Expand Down

0 comments on commit f1bccc6

Please sign in to comment.