1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Reorganized test_runner test apps.

This commit is contained in:
Tim Graham
2018-01-04 14:41:38 -05:00
parent d7b2aa24f7
commit 8e1a7dab4b
14 changed files with 38 additions and 36 deletions

View File

@@ -0,0 +1,34 @@
import doctest
from unittest import TestCase
from django.test import SimpleTestCase, TestCase as DjangoTestCase
from . import doctests
class TestVanillaUnittest(TestCase):
def test_sample(self):
self.assertEqual(1, 1)
class TestDjangoTestCase(DjangoTestCase):
def test_sample(self):
self.assertEqual(1, 1)
class TestZimpleTestCase(SimpleTestCase):
# Z is used to trick this test case to appear after Vanilla in default suite
def test_sample(self):
self.assertEqual(1, 1)
class EmptyTestCase(TestCase):
pass
def load_tests(loader, tests, ignore):
tests.addTests(doctest.DocTestSuite(doctests))
return tests