Skip to content

Commit

Permalink
[2939] make sure old permissions get reset after test fininsh
Browse files Browse the repository at this point in the history
  • Loading branch information
kindly committed Nov 13, 2012
1 parent ba8db22 commit 1d3356d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ckan/tests/logic/test_auth.py
Expand Up @@ -25,8 +25,12 @@ def setup_class(cls):
## add apikeys as they go along
cls.apikeys = {'sysadmin': admin_api, 'random_key': 'moo'}

cls.old_perm = new_authz.CONFIG_PERMISSIONS
new_authz.CONFIG_PERMISSIONS.update(INITIAL_TEST_CONFIG_PERMISSIONS)

@classmethod
def teardown_class(cls):
new_authz.CONFIG_PERMISSIONS.update(cls.old_perm)
model.repo.rebuild_db()

def _action_post(self, action, data, user, status=None):
Expand Down

0 comments on commit 1d3356d

Please sign in to comment.