Skip to content

Commit

Permalink
fix pep8 error
Browse files Browse the repository at this point in the history
  • Loading branch information
Nigel Babu committed Jan 10, 2014
1 parent f275374 commit a087e50
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ckan/new_tests/logic/action/test_update.py
Expand Up @@ -85,8 +85,10 @@ def test_user_cycle_apikey(self):
user = factories.User()
# Required because you can only cycle your own API key
context = {'user': user['name']}
result = helpers.call_action('user_cycle_apikey', context=context, id=user['name'])
updated_user = helpers.call_action('user_show', context=context, id=user['id'])
result = helpers.call_action('user_cycle_apikey', context=context,
id=user['name'])
updated_user = helpers.call_action('user_show', context=context,
id=user['id'])

assert updated_user['apikey'] != user['apikey']
assert result['apikey'] == updated_user['apikey']
Expand Down

0 comments on commit a087e50

Please sign in to comment.