Skip to content

Commit

Permalink
fix tests so they are treated as api calls
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Feb 29, 2012
1 parent 77076e5 commit 430a0a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/tests/functional/api/test_activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@ def _update_group(self, group, user):

# Update the group.
context = {'model': model, 'session': model.Session, 'user': user.name,
'allow_partial_update': True}
'allow_partial_update': True, 'api_version':3}
group_dict = {'id': group.id, 'title': 'edited'}
group_updated = group_update(context, group_dict)

Expand Down Expand Up @@ -892,7 +892,7 @@ def _delete_group(self, group, user):
before = self.record_details(user.id, group_id=group.id)

# Deleted the group.
context = {'model': model, 'session': model.Session,
context = {'model': model, 'session': model.Session, 'api_version':3,
'user': user.name, 'allow_partial_update': True}
group_dict = {'id': group.id, 'state': 'deleted'}
group_update(context, group_dict)
Expand Down

0 comments on commit 430a0a9

Please sign in to comment.