Skip to content

Commit

Permalink
PEP8
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Hammond committed Nov 20, 2012
1 parent 90a342c commit 0326af3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ckan/tests/functional/api/test_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,11 @@ def test_06_mark_new_activities_as_read(self):
def test_07_maximum_number_of_new_activities(self):
'''Test that the new activities count does not go higher than 15, even
if there are more than 15 new activities from the user's followers.'''
for n in range(0,20):
for n in range(0, 20):
notes = "Updated {n} times".format(n=n)
params = json.dumps({'name': 'warandpeace', 'notes': notes})
response = self.app.post('/api/action/package_update', params=params,
response = self.app.post('/api/action/package_update',
params=params,
extra_environ={'Authorization': str(self.joeadmin['apikey'])})
assert response.json['success'] is True
assert self.dashboard_new_activities_count(self.new_user) == 15

0 comments on commit 0326af3

Please sign in to comment.