summaryrefslogtreecommitdiff
path: root/tests/test_discovery_sample3
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2018-12-05 15:21:09 -0500
committerTim Graham <timograham@gmail.com>2018-12-05 15:30:23 -0500
commit4c7c608a1deee37055d4a2b8a71e34def04a2a1f (patch)
treef1bd8c1300f3ece897fd22b6820987460f014f84 /tests/test_discovery_sample3
parent734ce71824180740f2318750ae2436f4b60c30b1 (diff)
Reverted "Fixed #25251 -- Made data migrations available in TransactionTestCase when using --keepdb."
This reverts commits b3b1d3d45fc066367f4fcacf0b06f72fcd00a9c6 and 9fa0d3786febf36c87ef059a39115aa1ce3326e8 due to reverse build failures for which a solution isn't forthcoming.
Diffstat (limited to 'tests/test_discovery_sample3')
-rw-r--r--tests/test_discovery_sample3/__init__.py0
-rw-r--r--tests/test_discovery_sample3/tests_transaction_test_case_mixed.py50
-rw-r--r--tests/test_discovery_sample3/tests_transaction_test_case_ordering.py28
3 files changed, 0 insertions, 78 deletions
diff --git a/tests/test_discovery_sample3/__init__.py b/tests/test_discovery_sample3/__init__.py
deleted file mode 100644
index e69de29bb2..0000000000
--- a/tests/test_discovery_sample3/__init__.py
+++ /dev/null
diff --git a/tests/test_discovery_sample3/tests_transaction_test_case_mixed.py b/tests/test_discovery_sample3/tests_transaction_test_case_mixed.py
deleted file mode 100644
index 13059bbb87..0000000000
--- a/tests/test_discovery_sample3/tests_transaction_test_case_mixed.py
+++ /dev/null
@@ -1,50 +0,0 @@
-from unittest import TestCase
-
-from django.test import (
- TestCase as DjangoTestCase, TransactionTestCase, skipUnlessDBFeature,
-)
-
-
-class TestVanillaUnittest(TestCase):
- def test_sample(self):
- self.assertEqual(1, 1)
-
-
-class TestDjangoTestCase(DjangoTestCase):
- def test_sample(self):
- self.assertEqual(1, 1)
-
-
-class TestTransactionTestCase1(TransactionTestCase):
- available_apps = ['test_discovery_sample3']
- serialized_rollback = False
-
- def test_sample(self):
- self.assertEqual(1, 1)
-
-
-class TestTransactionTestCase2(TransactionTestCase):
- available_apps = ['test_discovery_sample3']
- serialized_rollback = True
-
- def test_sample(self):
- self.assertEqual(1, 1)
-
-
-# django.test.runner.reorder_postprocess() ignores this skipped test when
-# assigning _next_serialized_rollback.
-@skipUnlessDBFeature('nonexistent')
-class TestTransactionTestCase3(TransactionTestCase):
- available_apps = ['test_discovery_sample3']
- serialized_rollback = True
-
- def test_sample(self):
- self.assertEqual(1, 1)
-
-
-class TestTransactionTestCase4(TransactionTestCase):
- available_apps = ['test_discovery_sample3']
- serialized_rollback = False
-
- def test_sample(self):
- self.assertEqual(1, 1)
diff --git a/tests/test_discovery_sample3/tests_transaction_test_case_ordering.py b/tests/test_discovery_sample3/tests_transaction_test_case_ordering.py
deleted file mode 100644
index 8d79bc08a6..0000000000
--- a/tests/test_discovery_sample3/tests_transaction_test_case_ordering.py
+++ /dev/null
@@ -1,28 +0,0 @@
-from unittest import TestCase
-
-from django.test import (
- SimpleTestCase, TestCase as DjangoTestCase, TransactionTestCase,
-)
-
-
-class TestDjangoTestCase(DjangoTestCase):
- def test_sample(self):
- self.assertEqual(1, 1)
-
-
-class TestVanillaUnittest(TestCase):
- def test_sample(self):
- self.assertEqual(1, 1)
-
-
-class TestZimpleTestCase(SimpleTestCase):
- # Z gets this test to appear after Vanilla in the default suite.
- def test_sample(self):
- self.assertEqual(1, 1)
-
-
-class TestTransactionTestCase(TransactionTestCase):
- available_apps = ['test_discovery_sample3']
-
- def test_sample(self):
- self.assertEqual(1, 1)