Skip to content

Commit

Permalink
[#1505] Instead of accessing and then deleting an attribute, simply p…
Browse files Browse the repository at this point in the history
…op() it.
  • Loading branch information
vitorbaptista authored and amercader committed Jun 19, 2014
1 parent 61dc3a4 commit a89b729
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ckan/new_tests/factories.py
Expand Up @@ -130,9 +130,8 @@ def _create(cls, target_class, *args, **kwargs):
assert False, "Positional args aren't supported, use keyword args."

context = {
'user': kwargs['user']['name']
'user': kwargs.pop('user')['name']
}
del kwargs['user']

group_dict = helpers.call_action('group_create',
context=context,
Expand Down

0 comments on commit a89b729

Please sign in to comment.