Skip to content

Commit

Permalink
[#2188] Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
David Read committed Jan 8, 2015
1 parent 093a168 commit 2a5164d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ckan/tests/functional/api/test_activity.py
Expand Up @@ -223,7 +223,6 @@ def package_activity_stream(self, package_id, apikey=None):
extra_environ = {'Authorization': str(apikey)}
else:
extra_environ = None
print '@@@@@@@@', extra_environ
response = self.app.get("/api/2/rest/dataset/%s/activity" % package_id,
extra_environ=extra_environ)
return json.loads(response.body)
Expand Down Expand Up @@ -832,6 +831,10 @@ def _delete_group(self, group, user):
assert timestamp >= before['time'] and timestamp <= after['time'], \
str(activity['timestamp'])

# Tidy up - undelete the group for following tests
group_dict = {'id': group['id'], 'state': 'active'}
group_update(self.app, group_dict, user['apikey'])

def _update_group(self, group, user):
"""
Update the given group and test that the correct activity stream
Expand Down

0 comments on commit 2a5164d

Please sign in to comment.