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 @@ -467,7 +467,9 @@ def get_order_number(test: pytest.Item) -> int:
467467 uses_db = False
468468 transactional = False
469469 fixtures = getattr (test , "fixturenames" , [])
470- transactional = transactional or "transactional_db" in fixtures
470+ transactional = transactional or (
471+ "transactional_db" in fixtures or "live_server" in fixtures
472+ )
471473 uses_db = uses_db or "db" in fixtures
472474
473475 if transactional :
Original file line number Diff line number Diff line change @@ -54,6 +54,9 @@ def test_run_second_decorator():
5454 def test_run_second_fixture(transactional_db):
5555 pass
5656
57+ def test_run_second_live_server_fixture(live_server):
58+ pass
59+
5760 def test_run_second_reset_sequences_fixture(django_db_reset_sequences):
5861 pass
5962
@@ -107,6 +110,7 @@ def test_run_last_test_case(self):
107110 "*test_run_first_serialized_rollback_decorator*" ,
108111 "*test_run_second_decorator*" ,
109112 "*test_run_second_fixture*" ,
113+ "*test_run_second_live_server_fixture*" ,
110114 "*test_run_second_reset_sequences_fixture*" ,
111115 "*test_run_second_transaction_test_case*" ,
112116 "*test_run_second_fixture_class*" ,
You can’t perform that action at this time.
0 commit comments