Skip to content

Commit

Permalink
TST: register_permissions again
Browse files Browse the repository at this point in the history
  • Loading branch information
jotelha committed Apr 22, 2024
1 parent 4d0e74c commit ad55d50
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def tmp_app_with_users(request):
from dtool_lookup_server.utils import (
register_users,
register_base_uri,
put_permissions,
register_permissions,
)

tmp_mongo_db_name = random_string()
Expand Down Expand Up @@ -81,7 +81,7 @@ def tmp_app_with_users(request):
"users_with_search_permissions": ["grumpy", "sleepy"],
"users_with_register_permissions": ["grumpy"]
}
put_permissions(base_uri, permissions)
register_permissions(base_uri, permissions)

@request.addfinalizer
def teardown():
Expand All @@ -101,7 +101,7 @@ def tmp_app_with_data(request):
register_users,
register_base_uri,
register_dataset,
put_permissions,
register_permissions,
)

tmp_mongo_db_name = random_string()
Expand Down Expand Up @@ -154,7 +154,7 @@ def tmp_app_with_data(request):
"users_with_search_permissions": [username],
"users_with_register_permissions": [username]
}
put_permissions(base_uri, permissions)
register_permissions(base_uri, permissions)

# Add some data to the database.
for base_uri in ["s3://snow-white", "s3://mr-men"]:
Expand Down

0 comments on commit ad55d50

Please sign in to comment.