Skip to content

Commit e069393

Browse files
author
Ilyas Gasanov
committed
[DOP-20962] Add scheduler integration test
1 parent 388502c commit e069393

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/test_integration/test_scheduler/fixtures.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
from syncmaster.worker.config import celery
99

1010

11-
@pytest.fixture
11+
@pytest.fixture(
12+
scope="session",
13+
params=[pytest.param("scheduler", marks=[pytest.mark.scheduler])],
14+
)
1215
def mock_send_task_to_tick(mocker: MockerFixture):
1316
original_to_thread = asyncio.to_thread
1417
return mocker.patch(
@@ -17,7 +20,10 @@ def mock_send_task_to_tick(mocker: MockerFixture):
1720
)
1821

1922

20-
@pytest.fixture
23+
@pytest.fixture(
24+
scope="session",
25+
params=[pytest.param("scheduler", marks=[pytest.mark.scheduler])],
26+
)
2127
def mock_add_job(mocker: MockerFixture, transfer_job_manager: TransferJobManager):
2228
original_add_job = transfer_job_manager.scheduler.add_job
2329
return mocker.patch.object(

0 commit comments

Comments
 (0)