mirror of
https://github.com/django/django.git
synced 2025-11-24 21:00:12 +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:
parent
2cd19f3738
commit
16f26defa7
39 changed files with 90 additions and 90 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue