Skip to content

Commit 87e5758

Browse files
Ilyas GasanovIlyasDevelopment
authored andcommitted
[DOP-20962] Add scheduler integration test
1 parent eaf9130 commit 87e5758

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

tests/test_integration/test_scheduler/fixtures.py renamed to tests/test_integration/test_scheduler/conftest.py

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

1010

11-
@pytest.fixture(
12-
scope="session",
13-
params=[pytest.param("scheduler", marks=[pytest.mark.scheduler])],
14-
)
11+
@pytest.fixture
1512
def mock_send_task_to_tick(mocker: MockerFixture):
1613
original_to_thread = asyncio.to_thread
1714
return mocker.patch(
@@ -20,10 +17,7 @@ def mock_send_task_to_tick(mocker: MockerFixture):
2017
)
2118

2219

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

0 commit comments

Comments
 (0)