Skip to content

Commit 23a7edb

Browse files
committed
* askbot/tests/test_email_alerts.py: fixed test for the feedback page
* askbot/tests/test_forms.py: fixed test test_anonymous_user_cannot_add_admin_tag
1 parent 6b44170 commit 23a7edb

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

askbot/tests/test_email_alerts.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -752,9 +752,7 @@ def test_feedback_post_form(self):
752752
'subject': 'subject line'
753753
}
754754
response = client.post(reverse('feedback'), data)
755-
template_names = set([t.name for t in response.templates])
756-
expected = set(('email/feedback/subject.txt', 'email/feedback/body.html'))
757-
self.assertEqual(template_names, expected)
755+
self.assertEqual(response.status_code, 302)
758756

759757
outbox = django.core.mail.outbox
760758
self.assertEqual(len(outbox), 1)

askbot/tests/test_forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def test_non_admin_can_add_non_admin_tag(self):
231231
self.assertTrue(form.is_valid())
232232
self.assertEqual(form.cleaned_data['tags'], 'non-admin-tag')
233233

234-
@with_settings(ADMIN_TAGS_ENABLED=False, ADMIN_TAGS='admin')
234+
@with_settings(ADMIN_TAGS_ENABLED=True, ADMIN_TAGS='admin')
235235
def test_anonymous_user_cannot_add_admin_tag(self):
236236
user = AnonymousUser()
237237
form_data = {

0 commit comments

Comments
 (0)