forked from django/django
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved contrib.flatpages tests out of contrib.
- Loading branch information
Showing
17 changed files
with
40 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
from django.contrib.auth.models import AnonymousUser, User | ||
from django.contrib.auth.tests.utils import skipIfCustomUser | ||
from django.template import Context, Template, TemplateSyntaxError | ||
from django.test import TestCase, override_settings | ||
from django.test import TestCase, modify_settings, override_settings | ||
|
||
from .settings import FLATPAGES_TEMPLATES | ||
|
||
|
||
@modify_settings(INSTALLED_APPS={'append': 'django.contrib.flatpages'}) | ||
@override_settings( | ||
MIDDLEWARE_CLASSES=[ | ||
'django.middleware.common.CommonMiddleware', | ||
|
@@ -15,7 +15,7 @@ | |
'django.contrib.messages.middleware.MessageMiddleware', | ||
'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware', | ||
], | ||
ROOT_URLCONF='django.contrib.flatpages.tests.urls', | ||
ROOT_URLCONF='flatpages_tests.urls', | ||
TEMPLATES=FLATPAGES_TEMPLATES, | ||
SITE_ID=1, | ||
) | ||
|
@@ -46,7 +46,6 @@ def test_get_flatpages_tag_for_anon_user(self): | |
})) | ||
self.assertEqual(out, "A Flatpage,A Nested Flatpage,") | ||
|
||
@skipIfCustomUser | ||
def test_get_flatpages_tag_for_user(self): | ||
"The flatpage template tag retrives all flatpages for an authenticated user" | ||
me = User.objects.create_user('testuser', '[email protected]', 's3krit') | ||
|
@@ -85,7 +84,6 @@ def test_get_flatpages_with_prefix_for_anon_user(self): | |
})) | ||
self.assertEqual(out, "A Nested Flatpage,") | ||
|
||
@skipIfCustomUser | ||
def test_get_flatpages_with_prefix_for_user(self): | ||
"The flatpage template tag retrieve prefixed flatpages for an authenticated user" | ||
me = User.objects.create_user('testuser', '[email protected]', 's3krit') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters