Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix removed in django 110 warnings #10

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 11 additions & 0 deletions tagging/tests/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,14 @@
'tagging',
'tagging.tests',
]

TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'OPTIONS': {
'loaders': [
'tagging.tests.utils.VoidLoader',
],
},
},
]
3 changes: 0 additions & 3 deletions tagging/tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1122,9 +1122,6 @@ def test_clean_name_too_long(self):

@override_settings(
ROOT_URLCONF='tagging.tests.urls',
TEMPLATE_LOADERS=(
'tagging.tests.utils.VoidLoader',
),
)
class TestTaggedObjectList(TestCase):

Expand Down
4 changes: 2 additions & 2 deletions tagging/tests/utils.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
"""
Tests utils for tagging.
"""
from django.template.loader import BaseLoader
from django.template.loaders.base import Loader


class VoidLoader(BaseLoader):
class VoidLoader(Loader):
"""
Template loader which is always returning
an empty template.
Expand Down