Skip to content

Commit

Permalink
Remove warnings from Django 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Fantomas42 committed May 2, 2016
1 parent d509c94 commit c708c80
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
11 changes: 8 additions & 3 deletions tagging/tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1140,9 +1140,14 @@ def test_clean_name_too_long(self):

@override_settings(
ROOT_URLCONF='tagging.tests.urls',
TEMPLATE_LOADERS=(
'tagging.tests.utils.VoidLoader',
),
TEMPLATES=[
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'OPTIONS': {
'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

0 comments on commit c708c80

Please sign in to comment.