mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Converted recently refactored templates tests to SimpleTestCase.
These test methods don't need DB setup/teardown.
Refs #23768 and b872134b.
This commit is contained in:
committed by
Tim Graham
parent
2cd19f3738
commit
16f26defa7
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user