Skip to content

Commit

Permalink
Fix a few small mistakes in the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelbabu committed Nov 1, 2013
1 parent 3273ebf commit 787cb7a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ckan/tests/functional/api/test_user.py
Expand Up @@ -133,7 +133,7 @@ def teardown_class(cls):

model.repo.rebuild_db()

def test_user_create_api_disabled_sysadmin(self):
def test_user_create_api_enabled_sysadmin(self):
params = {
'name': 'testinganewusersysadmin',
'email': 'testinganewuser@ckan.org',
Expand All @@ -145,14 +145,13 @@ def test_user_create_api_disabled_sysadmin(self):
res_dict = res.json
assert res_dict['success'] is True

def test_user_create_api_disabled_anon(self):
def test_user_create_api_enabled_anon(self):
params = {
'name': 'testinganewuseranon',
'email': 'testinganewuser@ckan.org',
'password': 'random',
}
res = self.app.post('/api/3/action/user_create', json.dumps(params),
expect_errors=True)
res = self.app.post('/api/3/action/user_create', json.dumps(params))
res_dict = res.json
assert res_dict['success'] is True

Expand Down

0 comments on commit 787cb7a

Please sign in to comment.