Skip to content
Snippets Groups Projects
Commit ba7f764d authored by Megan Henning's avatar Megan Henning
Browse files

Fix test

parent fa1b58a3
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,6 @@ Purpose of this module is to define all the permissions checker decorators for t
from . import _get_access, INTEGER_PERMISSIONS
from ..web.errors import APIPermissionException
from .. import config
def default_container(handler, container=None, target_parent_container=None):
......@@ -39,7 +38,6 @@ def default_container(handler, container=None, target_parent_container=None):
if not has_access and container.get('has_original_data', False) and user_perms == INTEGER_PERMISSIONS['rw']:
# The user was not granted access because the container had original data
errors = {'reason': 'original_data_present'}
else:
errors = {'reason': 'permission_denied'}
......
......@@ -1269,7 +1269,7 @@ def test_container_delete_tag(data_builder, default_payload, as_root, as_admin,
# try to delete acquisition referenced by analysis
r = as_admin.delete('/acquisitions/' + acquisition)
assert r.status_code == 400
assert r.status_code == 403
# try to delete acquisition file referenced by analysis
r = as_admin.delete('/acquisitions/' + acquisition + '/files/test.csv')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment