Skip to content

Commit

Permalink
Used a django.test.TestCase for compatibility with @override_settings.
Browse files Browse the repository at this point in the history
These tests were silently skipped.
  • Loading branch information
aaugustin committed Nov 24, 2012
1 parent abd0e76 commit 690cac3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/regressiontests/templates/tests.py
Expand Up @@ -23,7 +23,7 @@
from django.core import urlresolvers from django.core import urlresolvers
from django.template import loader from django.template import loader
from django.template.loaders import app_directories, filesystem, cached from django.template.loaders import app_directories, filesystem, cached
from django.test import RequestFactory from django.test import RequestFactory, TestCase
from django.test.utils import (setup_test_template_loader, from django.test.utils import (setup_test_template_loader,
restore_template_loaders, override_settings) restore_template_loaders, override_settings)
from django.utils import unittest from django.utils import unittest
Expand Down Expand Up @@ -156,7 +156,7 @@ def __str__(self):
return 'ŠĐĆŽćžšđ' return 'ŠĐĆŽćžšđ'


@override_settings(MEDIA_URL="/media/", STATIC_URL="/static/") @override_settings(MEDIA_URL="/media/", STATIC_URL="/static/")
class Templates(unittest.TestCase): class Templates(TestCase):


def test_loaders_security(self): def test_loaders_security(self):
ad_loader = app_directories.Loader() ad_loader = app_directories.Loader()
Expand Down

0 comments on commit 690cac3

Please sign in to comment.