Showing
1 changed file
with
0 additions
and
15 deletions
| 1 | 1 | from __future__ import absolute_import |
| 2 | 2 | |
| 3 | -import unittest | |
| 4 | - | |
| 5 | -import django | |
| 6 | -from django.conf import settings | |
| 7 | -from django.core.exceptions import ImproperlyConfigured | |
| 8 | 3 | from django.test.utils import override_settings |
| 9 | -from django.utils import six | |
| 10 | 4 | |
| 11 | 5 | import django_comments |
| 12 | 6 | from django_comments.models import Comment |
| ... | ... | @@ -21,15 +15,6 @@ class CommentAppAPITests(CommentTestCase): |
| 21 | 15 | def testGetCommentApp(self): |
| 22 | 16 | self.assertEqual(django_comments.get_comment_app(), django_comments) |
| 23 | 17 | |
| 24 | - @unittest.skipIf(django.VERSION >= (1, 7), "Missing apps raise ImportError with django 1.7") | |
| 25 | - @override_settings( | |
| 26 | - COMMENTS_APP='missing_app', | |
| 27 | - INSTALLED_APPS=list(settings.INSTALLED_APPS) + ['missing_app'], | |
| 28 | - ) | |
| 29 | - def testGetMissingCommentApp(self): | |
| 30 | - with six.assertRaisesRegex(self, ImproperlyConfigured, 'missing_app'): | |
| 31 | - django_comments.get_comment_app() | |
| 32 | - | |
| 33 | 18 | def testGetForm(self): |
| 34 | 19 | self.assertEqual(django_comments.get_form(), CommentForm) |
| 35 | 20 | ... | ... |
Please
register
or
login
to post a comment