Skip to content

Commit

Permalink
fix(test): removes print statement
Browse files Browse the repository at this point in the history
  • Loading branch information
extremeunix committed Oct 4, 2014
1 parent 623b046 commit 386f342
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion tests/test_eventactions_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ def test_add_eventaction(self):
'threshold_timer': 60,
'pluginParameters': 'HODOR_RULES'}
response = self.client.post(self.add_url, data, follow=True)
print response

self.assertRedirects(response, '/events/view/%s/' % self.event.id)
response = self.client.get('/events/view/%s/' % self.event.id)
Expand Down
3 changes: 1 addition & 2 deletions tests/test_user_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,10 @@ def test_update_user_perms(self):
response = self.client.post('/users/perms/update/', data={'user_id': new_user.id, 'access_level': '5'}, follow=True)
self.assertRedirects(response, '/users/view/%d/' % new_user.id)
user = User.objects.get(pk=new_user.id)
print user.perms, new_user.perms
self.assertEquals(user.perms.access_level, 5)

# Test updating once you have perms
response = self.client.post('/users/perms/update/', data={'user_id': new_user.id, 'access_level': '2'}, follow=True)
self.assertRedirects(response, '/users/view/%d/' % new_user.id)
user = User.objects.get(pk=new_user.id)
self.assertEquals(user.perms.access_level, 2)
self.assertEquals(user.perms.access_level, 2)

0 comments on commit 386f342

Please sign in to comment.