summaryrefslogtreecommitdiff
path: root/tests/test_runner
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_runner
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_runner')
-rw-r--r--tests/test_runner/test_discover_runner.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/tests/test_runner/test_discover_runner.py b/tests/test_runner/test_discover_runner.py
index efc055978d..d7569fc111 100644
--- a/tests/test_runner/test_discover_runner.py
+++ b/tests/test_runner/test_discover_runner.py
@@ -223,32 +223,3 @@ class DiscoverRunnerTests(SimpleTestCase):
with captured_stdout() as stdout:
runner.build_suite(['test_runner_apps.tagged.tests'])
self.assertIn('Excluding test tag(s): bar, foo.\n', stdout.getvalue())
-
- def test_transaction_test_case_before_simple_test_case(self):
- runner = DiscoverRunner()
- suite = runner.build_suite(['test_discovery_sample3.tests_transaction_test_case_ordering'])
- suite = tuple(suite)
- # TransactionTestCase is second after TestCase.
- self.assertIn('TestTransactionTestCase', suite[1].id())
-
- def test_transaction_test_case_next_serialized_rollback_option(self):
- runner = DiscoverRunner()
- suite = runner.build_suite(['test_discovery_sample3.tests_transaction_test_case_mixed'])
- django_test_case, first_transaction_test_case, second_transaction_test_case, \
- third_transaction_test_case, fourth_transaction_test_case, vanilla_test_case = suite
- # TransactionTestCase1._next_serialized_rollback is
- # TransactionTestCase2.serialize_rollback.
- self.assertEqual(
- first_transaction_test_case._next_serialized_rollback,
- second_transaction_test_case.serialized_rollback
- )
- # TransactionTestCase2._next_serialized_rollback is
- # TransactionTestCase4.serialize_rollback because TransactionTestCase3
- # is skipped.
- self.assertEqual(
- second_transaction_test_case._next_serialized_rollback,
- fourth_transaction_test_case.serialized_rollback
- )
- # The last TransactionTestCase of the suite has
- # _next_serialized_rollback = True.
- self.assertIs(fourth_transaction_test_case._next_serialized_rollback, True)