File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -463,7 +463,9 @@ def get_order_number(test: pytest.Item) -> int:
463
463
uses_db = False
464
464
transactional = False
465
465
fixtures = getattr (test , "fixturenames" , [])
466
- transactional = transactional or "transactional_db" in fixtures
466
+ transactional = transactional or (
467
+ "transactional_db" in fixtures or "live_server" in fixtures
468
+ )
467
469
uses_db = uses_db or "db" in fixtures
468
470
469
471
if transactional :
Original file line number Diff line number Diff line change @@ -54,6 +54,9 @@ def test_run_second_decorator():
54
54
def test_run_second_fixture(transactional_db):
55
55
pass
56
56
57
+ def test_run_second_live_server_fixture(live_server):
58
+ pass
59
+
57
60
def test_run_second_reset_sequences_fixture(django_db_reset_sequences):
58
61
pass
59
62
@@ -107,6 +110,7 @@ def test_run_last_test_case(self):
107
110
"*test_run_first_serialized_rollback_decorator*" ,
108
111
"*test_run_second_decorator*" ,
109
112
"*test_run_second_fixture*" ,
113
+ "*test_run_second_live_server_fixture*" ,
110
114
"*test_run_second_reset_sequences_fixture*" ,
111
115
"*test_run_second_transaction_test_case*" ,
112
116
"*test_run_second_fixture_class*" ,
You can’t perform that action at this time.
0 commit comments