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:
34
tests/test_runner_apps/sample/tests_sample.py
Normal file
34
tests/test_runner_apps/sample/tests_sample.py
Normal 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
|
||||
Reference in New Issue
Block a user