Skip to content

Commit

Permalink
Switched unittest.TestCase to SimpleTestCase in template_tests/test_n…
Browse files Browse the repository at this point in the history
…odelist.py.
  • Loading branch information
jdufresne authored and felixxm committed May 11, 2020
1 parent ccb1cfb commit d8cb8fd
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/template_tests/test_nodelist.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
from unittest import TestCase

from django.template import Context, Engine
from django.template.base import TextNode, VariableNode
from django.test import SimpleTestCase


class NodelistTest(TestCase):
class NodelistTest(SimpleTestCase):

@classmethod
def setUpClass(cls):
Expand Down Expand Up @@ -32,7 +31,7 @@ def test_ifchanged(self):
self.assertEqual(len(vars), 1)


class TextNodeTest(TestCase):
class TextNodeTest(SimpleTestCase):

def test_textnode_repr(self):
engine = Engine()
Expand All @@ -45,7 +44,7 @@ def test_textnode_repr(self):
self.assertEqual(repr(texts[0]), reprtext)


class ErrorIndexTest(TestCase):
class ErrorIndexTest(SimpleTestCase):
"""
Checks whether index of error is calculated correctly in
template debugger in for loops. Refs ticket #5831
Expand Down

0 comments on commit d8cb8fd

Please sign in to comment.