Skip to content

Commit 50c0def

Browse files
committed
tests: fix context for test
1 parent 9db79dd commit 50c0def

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

ckanext/dcor_schemas/tests/test_cli.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,11 @@ def test_dcor_prune_orphaned_s3_artifacts(cli):
336336
@pytest.mark.usefixtures('clean_db', 'with_plugins', 'with_request_context')
337337
def test_dcor_purge_unused_collections_and_circles(cli):
338338
user = factories.User()
339-
context = {'user': user['id']}
340-
339+
user_obj = model.User.by_name(user["name"])
340+
context = {'ignore_auth': False,
341+
'auth_user_obj': user_obj,
342+
'user': user['name'],
343+
'api_version': 3}
341344
circle_keep = factories.Organization(users=[{
342345
'name': user['id'],
343346
'capacity': 'admin'

0 commit comments

Comments
 (0)