aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests/test_notifications.py
diff options
context:
space:
mode:
authortilly-Q <nattilypigeonfowl@gmail.com>2013-08-20 15:11:02 -0400
committertilly-Q <nattilypigeonfowl@gmail.com>2013-08-20 15:24:29 -0400
commit2c901db023cd29d8f12408470245c9a5b8b911f1 (patch)
tree658dcc580781c1bc09d67346f78f007305263ce6 /mediagoblin/tests/test_notifications.py
parent9e204e49c9670b0e004dc9b62bf3b698b7534325 (diff)
downloadmediagoblin-2c901db023cd29d8f12408470245c9a5b8b911f1.tar.lz
mediagoblin-2c901db023cd29d8f12408470245c9a5b8b911f1.tar.xz
mediagoblin-2c901db023cd29d8f12408470245c9a5b8b911f1.zip
This commit was just to fix a few of the errors with the merging and to
make sure that all of the previous tests work fine.
Diffstat (limited to 'mediagoblin/tests/test_notifications.py')
-rw-r--r--mediagoblin/tests/test_notifications.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/mediagoblin/tests/test_notifications.py b/mediagoblin/tests/test_notifications.py
index d52b8d5a..8420e358 100644
--- a/mediagoblin/tests/test_notifications.py
+++ b/mediagoblin/tests/test_notifications.py
@@ -38,7 +38,7 @@ class TestNotifications:
# TODO: Possibly abstract into a decorator like:
# @as_authenticated_user('chris')
- self.test_user = fixture_add_user()
+ self.test_user = fixture_add_user(privileges=[u'active',u'commenter'])
self.current_user = None
@@ -75,7 +75,10 @@ class TestNotifications:
'''
user = fixture_add_user('otherperson', password='nosreprehto',
- wants_comment_notification=wants_email)
+ wants_comment_notification=wants_email,
+ privileges=[u'active',u'commenter'])
+
+ assert user.wants_comment_notification == wants_email
user_id = user.id
@@ -124,6 +127,8 @@ otherperson@example.com\n\nSGkgb3RoZXJwZXJzb24sCmNocmlzIGNvbW1lbnRlZCBvbiB5b3VyI
else:
assert mail.EMAIL_TEST_MBOX_INBOX == []
+ mail.EMAIL_TEST_MBOX_INBOX = []
+
# Save the ids temporarily because of DetachedInstanceError
notification_id = notification.id
comment_id = notification.subject.id