diff options
| author | Ramiro Morales <cramm0@gmail.com> | 2014-12-03 17:36:17 -0300 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-12-03 18:56:46 -0500 |
| commit | 16f26defa7510707742a15aa89cae56f11d14c3f (patch) | |
| tree | 1af09ea98a1c4810739229a39eab05ed952d1eeb /tests/template_tests/syntax_tests | |
| parent | 2cd19f3738b9c4a6861c007bf22f72a386cba07f (diff) | |
Converted recently refactored templates tests to SimpleTestCase.
These test methods don't need DB setup/teardown.
Refs #23768 and b872134b.
Diffstat (limited to 'tests/template_tests/syntax_tests')
36 files changed, 73 insertions, 73 deletions
diff --git a/tests/template_tests/syntax_tests/test_autoescape.py b/tests/template_tests/syntax_tests/test_autoescape.py index 6457fe31df..a908daca20 100644 --- a/tests/template_tests/syntax_tests/test_autoescape.py +++ b/tests/template_tests/syntax_tests/test_autoescape.py @@ -1,11 +1,11 @@ from django.template.base import TemplateSyntaxError -from django.test import TestCase +from django.test import SimpleTestCase from django.utils.safestring import mark_safe from .utils import render, setup, SafeClass, UnsafeClass -class AutoescapeTagTests(TestCase): +class AutoescapeTagTests(SimpleTestCase): @setup({'autoescape-tag01': '{% autoescape off %}hello{% endautoescape %}'}) def test_autoescape_tag01(self): diff --git a/tests/template_tests/syntax_tests/test_basic.py b/tests/template_tests/syntax_tests/test_basic.py index 8e92c48e6a..5678b935ba 100644 --- a/tests/template_tests/syntax_tests/test_basic.py +++ b/tests/template_tests/syntax_tests/test_basic.py @@ -1,7 +1,7 @@ from django.conf import settings from django.template.base import Context, TemplateSyntaxError from django.template.loader import get_template -from django.test import TestCase +from django.test import SimpleTestCase from .utils import render, setup, SilentGetItemClass, SilentAttrClass, SomeClass @@ -13,7 +13,7 @@ basic_templates = { } -class BasicSyntaxTests(TestCase): +class BasicSyntaxTests(SimpleTestCase): @setup(basic_templates) def test_basic_syntax01(self): diff --git a/tests/template_tests/syntax_tests/test_builtins.py b/tests/template_tests/syntax_tests/test_builtins.py index 5771c0d429..ecd428154c 100644 --- a/tests/template_tests/syntax_tests/test_builtins.py +++ b/tests/template_tests/syntax_tests/test_builtins.py @@ -1,9 +1,9 @@ -from django.test import TestCase +from django.test import SimpleTestCase from .utils import render, setup -class BuiltinsTests(TestCase): +class BuiltinsTests(SimpleTestCase): @setup({'builtins01': '{{ True }}'}) def test_builtins01(self): diff --git a/tests/template_tests/syntax_tests/test_cache.py b/tests/template_tests/syntax_tests/test_cache.py index 72b7fc2aa7..3e304eb1a4 100644 --- a/tests/template_tests/syntax_tests/test_cache.py +++ b/tests/template_tests/syntax_tests/test_cache.py @@ -1,12 +1,12 @@ from django.core.cache import cache from django.template.base import TemplateSyntaxError from django.template.loader import get_template -from django.test import TestCase +from django.test import SimpleTestCase from .utils import render, setup -class CacheTagTests(TestCase): +class CacheTagTests(SimpleTestCase): def tearDown(self): cache.clear() diff --git a/tests/template_tests/syntax_tests/test_comment.py b/tests/template_tests/syntax_tests/test_comment.py index 50d26e7cf1..35c720efd7 100644 --- a/tests/template_tests/syntax_tests/test_comment.py +++ b/tests/template_tests/syntax_tests/test_comment.py @@ -1,9 +1,9 @@ -from django.test import TestCase +from django.test import SimpleTestCase from .utils import render, setup -class CommentSyntaxTests(TestCase): +class CommentSyntaxTests(SimpleTestCase): @setup({'comment-syntax01': '{# this is hidden #}hello'}) def test_comment_syntax01(self): diff --git a/tests/template_tests/syntax_tests/test_cycle.py b/tests/template_tests/syntax_tests/test_cycle.py index cbe579c4b9..bab3418e84 100644 --- a/tests/template_tests/syntax_tests/test_cycle.py +++ b/tests/template_tests/syntax_tests/test_cycle.py @@ -2,13 +2,13 @@ import warnings from django.template.base import TemplateSyntaxError from django.template.loader import get_template -from django.test import TestCase +from django.test import SimpleTestCase from django.utils.deprecation import RemovedInDjango20Warning from .utils import render, setup -class CycleTagTests(TestCase): +class CycleTagTests(SimpleTestCase): @setup({'cycle01': '{% cycle a %}'}) def test_cycle01(self): diff --git a/tests/template_tests/syntax_tests/test_exceptions.py b/tests/template_tests/syntax_tests/test_exceptions.py index 923ca4a205..78c9df35e9 100644 --- a/tests/template_tests/syntax_tests/test_exceptions.py +++ b/tests/template_tests/syntax_tests/test_exceptions.py @@ -1,13 +1,13 @@ from django.conf import settings from django.template.base import TemplateDoesNotExist, TemplateSyntaxError from django.template.loader import get_template -from django.test import TestCase +from django.test import SimpleTestCase from .test_extends import inheritance_templates from .utils import render, setup -class ExceptionsTests(TestCase): +class ExceptionsTests(SimpleTestCase): @setup({'exception01': "{% extends 'nonexistent' %}"}) def test_exception01(self): diff --git a/tests/template_tests/syntax_tests/test_extends.py b/tests/template_tests/syntax_tests/test_extends.py index 7abfb382a0..f4b2465616 100644 --- a/tests/template_tests/syntax_tests/test_extends.py +++ b/tests/template_tests/syntax_tests/test_extends.py @@ -1,5 +1,5 @@ from django.template.base import Template -from django.test import TestCase +from django.test import SimpleTestCase from .utils import render, setup @@ -57,7 +57,7 @@ inheritance_templates = { } -class InheritanceTests(TestCase): +class InheritanceTests(SimpleTestCase): @setup(inheritance_templates) def test_inheritance01(self): diff --git a/tests/template_tests/syntax_tests/test_filter_syntax.py b/tests/template_tests/syntax_tests/test_filter_syntax.py index 4e0b33575c..bdf800b9c1 100644 --- a/tests/template_tests/syntax_tests/test_filter_syntax.py +++ b/tests/template_tests/syntax_tests/test_filter_syntax.py @@ -5,13 +5,13 @@ import warnings from django.conf import settings from django.template.base import TemplateSyntaxError from django.template.loader import get_template -from django.test import TestCase +from django.test import SimpleTestCase from django.utils.deprecation import RemovedInDjango20Warning from .utils import render, setup, SomeClass, SomeOtherException, UTF8Class -class FilterSyntaxTests(TestCase): +class FilterSyntaxTests(SimpleTestCase): @setup({'filter-syntax01': '{{ var|upper }}'}) def test_filter_syntax01(self): diff --git a/tests/template_tests/syntax_tests/test_filter_tag.py b/tests/template_tests/syntax_tests/test_filter_tag.py index 51671fc5ac..4a54efd924 100644 --- a/tests/template_tests/syntax_tests/test_filter_tag.py +++ b/tests/template_tests/syntax_tests/test_filter_tag.py @@ -1,11 +1,11 @@ from django.template.base import TemplateSyntaxError from django.template.loader import get_template -from django.test import TestCase +from django.test import SimpleTestCase from .utils import render, setup -class FilterTagTests(TestCase): +class FilterTagTests(SimpleTestCase): @setup({'filter01': '{% filter upper %}{% endfilter %}'}) def test_filter01(self): diff --git a/tests/template_tests/syntax_tests/test_firstof.py b/tests/template_tests/syntax_tests/test_firstof.py index 23216416ac..7f44818171 100644 --- a/tests/template_tests/syntax_tests/test_firstof.py +++ b/tests/template_tests/syntax_tests/test_firstof.py @@ -2,13 +2,13 @@ import warnings from django.template.base import TemplateSyntaxError from django.template.loader import get_template -from django.test import TestCase +from django.test import SimpleTestCase from django.utils.deprecation import RemovedInDjango20Warning from .utils import render, setup -class FirstOfTagTests(TestCase): +class FirstOfTagTests(SimpleTestCase): @setup({'firstof01': '{% firstof a b c %}'}) def test_firstof01(self): diff --git a/tests/template_tests/syntax_tests/test_for.py b/tests/template_tests/syntax_tests/test_for.py index 94b9b95cca..0c55c43585 100644 --- a/tests/template_tests/syntax_tests/test_for.py +++ b/tests/template_tests/syntax_tests/test_for.py @@ -2,13 +2,13 @@ import warnings from django.conf import settings from django.template.base import TemplateSyntaxError -from django.test import TestCase +from django.test import SimpleTestCase from django.utils.deprecation import RemovedInDjango20Warning from .utils import render, setup -class ForTagTests(TestCase): +class ForTagTests(SimpleTestCase): @setup({'for-tag01': '{% for val in values %}{{ val }}{% endfor %}'}) def test_for_tag01(self): diff --git a/tests/template_tests/syntax_tests/test_i18n.py b/tests/template_tests/syntax_tests/test_i18n.py index 9a2581fc88..d2b7d5992d 100644 --- a/tests/template_tests/syntax_tests/test_i18n.py +++ b/tests/template_tests/syntax_tests/test_i18n.py @@ -2,13 +2,13 @@ from __future__ import unicode_literals from django.conf import settings -from django.test import TestCase +from django.test import SimpleTestCase from django.utils.safestring import mark_safe from .utils import render, setup -class I18nTagTests(TestCase): +class I18nTagTests(SimpleTestCase): @setup({'i18n01': '{% load i18n %}{% trans \'xxxyyyxxx\' %}'}) def test_i18n01(self): diff --git a/tests/template_tests/syntax_tests/test_if.py b/tests/template_tests/syntax_tests/test_if.py index 0a8da7e120..f54bfec033 100644 --- a/tests/template_tests/syntax_tests/test_if.py +++ b/tests/template_tests/syntax_tests/test_if.py @@ -1,11 +1,11 @@ from django.template.base import TemplateSyntaxError from django.template.loader import get_template -from django.test import TestCase +from django.test import SimpleTestCase from .utils import render, setup, TestObj -class IfTagTests(TestCase): +class IfTagTests(SimpleTestCase): @setup({'if-tag01': '{% if foo %}yes{% else %}no{% endif %}'}) def test_if_tag01(self): diff --git a/tests/template_tests/syntax_tests/test_if_changed.py b/tests/template_tests/syntax_tests/test_if_changed.py index 446712dfd3..baad615e30 100644 --- a/tests/template_tests/syntax_tests/test_if_changed.py +++ b/tests/template_tests/syntax_tests/test_if_changed.py @@ -1,9 +1,9 @@ -from django.test import TestCase +from django.test import SimpleTestCase from .utils import render, setup -class IfChangedTagTests(TestCase): +class IfChangedTagTests(SimpleTestCase): @setup({'ifchanged01': '{% for n in num %}{% ifchanged %}{{ n }}{% endifchanged %}{% endfor %}'}) def test_ifchanged01(self): diff --git a/tests/template_tests/syntax_tests/test_if_equal.py b/tests/template_tests/syntax_tests/test_if_equal.py index a4aba43f96..f20a5db350 100644 --- a/tests/template_tests/syntax_tests/test_if_equal.py +++ b/tests/template_tests/syntax_tests/test_if_equal.py @@ -1,9 +1,9 @@ -from django.test import TestCase +from django.test import SimpleTestCase from .utils import render, setup -class IfEqualTagTests(TestCase): +class IfEqualTagTests(SimpleTestCase): @setup({'ifequal01': '{% ifequal a b %}yes{% endifequal %}'}) def test_ifequal01(self): @@ -194,7 +194,7 @@ class IfEqualTagTests(TestCase): self.assertEqual(output, 'x') -class IfNotEqualTagTests(TestCase): +class IfNotEqualTagTests(SimpleTestCase): @setup({'ifnotequal01': '{% ifnotequal a b %}yes{% endifnotequal %}'}) def test_ifnotequal01(self): diff --git a/tests/template_tests/syntax_tests/test_include.py b/tests/template_tests/syntax_tests/test_include.py index 8aef0da35e..2e881ade1d 100644 --- a/tests/template_tests/syntax_tests/test_include.py +++ b/tests/template_tests/syntax_tests/test_include.py @@ -1,7 +1,7 @@ from django.conf import settings from django.template.base import Context, TemplateDoesNotExist, TemplateSyntaxError from django.template.loader import get_template -from django.test import TestCase +from django.test import SimpleTestCase from .test_basic import basic_templates from .utils import render, setup @@ -13,7 +13,7 @@ include_fail_templates = { } -class IncludeTagTests(TestCase): +class IncludeTagTests(SimpleTestCase): @setup({'include01': '{% include "basic-syntax01" %}'}, basic_templates) def test_include01(self): diff --git a/tests/template_tests/syntax_tests/test_invalid_string.py b/tests/template_tests/syntax_tests/test_invalid_string.py index 5aadbdbcfa..a2893dc467 100644 --- a/tests/template_tests/syntax_tests/test_invalid_string.py +++ b/tests/template_tests/syntax_tests/test_invalid_string.py @@ -1,10 +1,10 @@ from django.conf import settings -from django.test import TestCase +from django.test import SimpleTestCase from .utils import render, setup -class InvalidStringTests(TestCase): +class InvalidStringTests(SimpleTestCase): @setup({'invalidstr01': '{{ var|default:"Foo" }}'}) def test_invalidstr01(self): diff --git a/tests/template_tests/syntax_tests/test_list_index.py b/tests/template_tests/syntax_tests/test_list_index.py index 4fc7b34d1a..0b0bb3837d 100644 --- a/tests/template_tests/syntax_tests/test_list_index.py +++ b/tests/template_tests/syntax_tests/test_list_index.py @@ -1,10 +1,10 @@ from django.conf import settings -from django.test import TestCase +from django.test import SimpleTestCase from .utils import render, setup -class ListIndexTests(TestCase): +class ListIndexTests(SimpleTestCase): @setup({'list-index01': '{{ var.1 }}'}) def test_list_index01(self): diff --git a/tests/template_tests/syntax_tests/test_load.py b/tests/template_tests/syntax_tests/test_load.py index b00b6b25ef..9342abb09d 100644 --- a/tests/template_tests/syntax_tests/test_load.py +++ b/tests/template_tests/syntax_tests/test_load.py @@ -1,11 +1,11 @@ from django.template.base import TemplateSyntaxError from django.template.loader import get_template -from django.test import TestCase +from django.test import SimpleTestCase from .utils import render, setup -class LoadTagTests(TestCase): +class LoadTagTests(SimpleTestCase): @setup({'load01': '{% load testtags subpackage.echo %}{% echo test %} {% echo2 "test" %}'}) def test_load01(self): diff --git a/tests/template_tests/syntax_tests/test_lorem.py b/tests/template_tests/syntax_tests/test_lorem.py index 9deba40e52..8692201dce 100644 --- a/tests/template_tests/syntax_tests/test_lorem.py +++ b/tests/template_tests/syntax_tests/test_lorem.py @@ -1,9 +1,9 @@ -from django.test import TestCase +from django.test import SimpleTestCase from .utils import render, setup -class LoremTagTests(TestCase): +class LoremTagTests(SimpleTestCase): @setup({'lorem1': '{% lorem 3 w %}'}) def test_lorem1(self): diff --git a/tests/template_tests/syntax_tests/test_multiline.py b/tests/template_tests/syntax_tests/test_multiline.py index af4c623dd1..6ae3ee0f83 100644 --- a/tests/template_tests/syntax_tests/test_multiline.py +++ b/tests/template_tests/syntax_tests/test_multiline.py @@ -1,4 +1,4 @@ -from django.test import TestCase +from django.test import SimpleTestCase from .utils import render, setup @@ -13,7 +13,7 @@ gentlemen. """ -class MultilineTests(TestCase): +class MultilineTests(SimpleTestCase): @setup({'multiline01': multiline_string}) def test_multiline01(self): diff --git a/tests/template_tests/syntax_tests/test_named_endblock.py b/tests/template_tests/syntax_tests/test_named_endblock.py index d12c14d503..7a06498d6b 100644 --- a/tests/template_tests/syntax_tests/test_named_endblock.py +++ b/tests/template_tests/syntax_tests/test_named_endblock.py @@ -1,11 +1,11 @@ from django.template.base import TemplateSyntaxError from django.template.loader import get_template -from django.test import TestCase +from django.test import SimpleTestCase from .utils import render, setup -class NamedEndblockTests(TestCase): +class NamedEndblockTests(SimpleTestCase): @setup({'namedendblocks01': '1{% block first %}_{% block second %}' '2{% endblock second %}_{% endblock first %}3'}) diff --git a/tests/template_tests/syntax_tests/test_now.py b/tests/template_tests/syntax_tests/test_now.py index fecf30fc8c..c8dde4bf0c 100644 --- a/tests/template_tests/syntax_tests/test_now.py +++ b/tests/template_tests/syntax_tests/test_now.py @@ -1,12 +1,12 @@ from datetime import datetime -from django.test import TestCase +from django.test import SimpleTestCase from django.utils.formats import date_format from .utils import render, setup -class NowTagTests(TestCase): +class NowTagTests(SimpleTestCase): @setup({'now01': '{% now "j n Y" %}'}) def test_now01(self): diff --git a/tests/template_tests/syntax_tests/test_numpy.py b/tests/template_tests/syntax_tests/test_numpy.py index de799c9108..aa40bdc7c1 100644 --- a/tests/template_tests/syntax_tests/test_numpy.py +++ b/tests/template_tests/syntax_tests/test_numpy.py @@ -1,7 +1,7 @@ from unittest import skipIf from django.conf import settings -from django.test import TestCase +from django.test import SimpleTestCase from .utils import render, setup @@ -12,7 +12,7 @@ except ImportError: @skipIf(numpy is False, "Numpy must be installed to run these tests.") -class NumpyTests(TestCase): +class NumpyTests(SimpleTestCase): @setup({'numpy-array-index01': '{{ var.1 }}'}) def test_numpy_array_index01(self): diff --git a/tests/template_tests/syntax_tests/test_regroup.py b/tests/template_tests/syntax_tests/test_regroup.py index c9fb9b691c..09313dcefc 100644 --- a/tests/template_tests/syntax_tests/test_regroup.py +++ b/tests/template_tests/syntax_tests/test_regroup.py @@ -2,12 +2,12 @@ from datetime import date from django.template.base import TemplateSyntaxError from django.template.loader import get_template -from django.test import TestCase +from django.test import SimpleTestCase from .utils import render, setup -class RegroupTagTests(TestCase): +class RegroupTagTests(SimpleTestCase): @setup({'regroup01': '' '{% regroup data by bar as grouped %}' diff --git a/tests/template_tests/syntax_tests/test_setup.py b/tests/template_tests/syntax_tests/test_setup.py index ca91093078..ea37698ee9 100644 --- a/tests/template_tests/syntax_tests/test_setup.py +++ b/tests/template_tests/syntax_tests/test_setup.py @@ -1,10 +1,10 @@ from django.conf import settings -from django.test import TestCase +from django.test import SimpleTestCase from .utils import setup -class SetupTests(TestCase): +class SetupTests(SimpleTestCase): def test_setup(self): """ diff --git a/tests/template_tests/syntax_tests/test_simple_tag.py b/tests/template_tests/syntax_tests/test_simple_tag.py index e6296ea26d..7529da014c 100644 --- a/tests/template_tests/syntax_tests/test_simple_tag.py +++ b/tests/template_tests/syntax_tests/test_simple_tag.py @@ -1,11 +1,11 @@ from django.template.base import TemplateSyntaxError from django.template.loader import get_template -from django.test import TestCase +from django.test import SimpleTestCase from .utils import render, setup -class SimpleTagTests(TestCase): +class SimpleTagTests(SimpleTestCase): @setup({'simpletag-renamed01': '{% load custom %}{% minusone 7 %}'}) def test_simpletag_renamed01(self): diff --git a/tests/template_tests/syntax_tests/test_spaceless.py b/tests/template_tests/syntax_tests/test_spaceless.py index 0c73a58bc5..1f5cb54e29 100644 --- a/tests/template_tests/syntax_tests/test_spaceless.py +++ b/tests/template_tests/syntax_tests/test_spaceless.py @@ -1,9 +1,9 @@ -from django.test import TestCase +from django.test import SimpleTestCase from .utils import render, setup -class SpacelessTagTests(TestCase): +class SpacelessTagTests(SimpleTestCase): @setup({'spaceless01': "{% spaceless %} <b> <i> text </i> </b> {% endspaceless %}"}) def test_spaceless01(self): diff --git a/tests/template_tests/syntax_tests/test_ssi.py b/tests/template_tests/syntax_tests/test_ssi.py index 33db059c92..d6945bdf60 100644 --- a/tests/template_tests/syntax_tests/test_ssi.py +++ b/tests/template_tests/syntax_tests/test_ssi.py @@ -1,7 +1,7 @@ import os import warnings -from django.test import override_settings, TestCase +from django.test import override_settings, SimpleTestCase from django.utils._os import upath from django.utils.deprecation import RemovedInDjango19Warning @@ -13,7 +13,7 @@ root = os.path.abspath(os.path.join(cwd, "..")) @override_settings(ALLOWED_INCLUDE_ROOTS=(root)) -class SsiTagTests(TestCase): +class SsiTagTests(SimpleTestCase): # Test normal behavior @setup({'ssi01': '{%% ssi "%s" %%}' % os.path.join( diff --git a/tests/template_tests/syntax_tests/test_static.py b/tests/template_tests/syntax_tests/test_static.py index 8b39a1465f..460dbd7077 100644 --- a/tests/template_tests/syntax_tests/test_static.py +++ b/tests/template_tests/syntax_tests/test_static.py @@ -1,12 +1,12 @@ from django.conf import settings -from django.test import override_settings, TestCase +from django.test import override_settings, SimpleTestCase from django.utils.six.moves.urllib.parse import urljoin from .utils import render, setup @override_settings(MEDIA_URL="/media/", STATIC_URL="/static/") -class StaticTagTests(TestCase): +class StaticTagTests(SimpleTestCase): @setup({'static-prefixtag01': '{% load static %}{% get_static_prefix %}'}) def test_static_prefixtag01(self): diff --git a/tests/template_tests/syntax_tests/test_template_tag.py b/tests/template_tests/syntax_tests/test_template_tag.py index aa56a971f9..212c2c1d50 100644 --- a/tests/template_tests/syntax_tests/test_template_tag.py +++ b/tests/template_tests/syntax_tests/test_template_tag.py @@ -1,11 +1,11 @@ from django.template.base import TemplateSyntaxError from django.template.loader import get_template -from django.test import TestCase +from django.test import SimpleTestCase from .utils import render, setup -class TemplateTagTests(TestCase): +class TemplateTagTests(SimpleTestCase): @setup({'templatetag01': '{% templatetag openblock %}'}) def test_templatetag01(self): diff --git a/tests/template_tests/syntax_tests/test_url.py b/tests/template_tests/syntax_tests/test_url.py index 7881bc58ed..cd684c9c13 100644 --- a/tests/template_tests/syntax_tests/test_url.py +++ b/tests/template_tests/syntax_tests/test_url.py @@ -4,14 +4,14 @@ import warnings from django.core.urlresolvers import NoReverseMatch from django.template.base import TemplateSyntaxError from django.template.loader import get_template -from django.test import override_settings, TestCase +from django.test import override_settings, SimpleTestCase from django.utils.deprecation import RemovedInDjango20Warning from .utils import render, setup @override_settings(ROOT_URLCONF='template_tests.urls') -class UrlTagTests(TestCase): +class UrlTagTests(SimpleTestCase): # Successes @setup({'url01': '{% url "template_tests.views.client" client.id %}'}) diff --git a/tests/template_tests/syntax_tests/test_verbatim.py b/tests/template_tests/syntax_tests/test_verbatim.py index 333c68a8c8..ef10c12fad 100644 --- a/tests/template_tests/syntax_tests/test_verbatim.py +++ b/tests/template_tests/syntax_tests/test_verbatim.py @@ -1,11 +1,11 @@ from django.template.base import TemplateSyntaxError from django.template.loader import get_template -from django.test import TestCase +from django.test import SimpleTestCase from .utils import render, setup -class VerbatimTagTests(TestCase): +class VerbatimTagTests(SimpleTestCase): @setup({'verbatim-tag01': '{% verbatim %}{{bare }}{% endverbatim %}'}) def test_verbatim_tag01(self): diff --git a/tests/template_tests/syntax_tests/test_width_ratio.py b/tests/template_tests/syntax_tests/test_width_ratio.py index 05f9e9ac3d..fc098b79cf 100644 --- a/tests/template_tests/syntax_tests/test_width_ratio.py +++ b/tests/template_tests/syntax_tests/test_width_ratio.py @@ -1,12 +1,12 @@ from django.template.base import TemplateSyntaxError from django.template.loader import get_template -from django.test import TestCase +from django.test import SimpleTestCase from django.utils import six from .utils import render, setup -class WidthRatioTagTests(TestCase): +class WidthRatioTagTests(SimpleTestCase): @setup({'widthratio01': '{% widthratio a b 0 %}'}) def test_widthratio01(self): diff --git a/tests/template_tests/syntax_tests/test_with.py b/tests/template_tests/syntax_tests/test_with.py index cc0a3344c2..11e8ef217f 100644 --- a/tests/template_tests/syntax_tests/test_with.py +++ b/tests/template_tests/syntax_tests/test_with.py @@ -1,11 +1,11 @@ from django.conf import settings from django.template.base import TemplateSyntaxError -from django.test import TestCase +from django.test import SimpleTestCase from .utils import render, setup -class WithTagTests(TestCase): +class WithTagTests(SimpleTestCase): @setup({'with01': '{% with key=dict.key %}{{ key }}{% endwith %}'}) def test_with01(self): |
