Skip to content

Commit 1478651

Browse files
committed
fixed paths
1 parent 75d7971 commit 1478651

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

services/autoscaling/tests/unit/conftest.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -322,25 +322,25 @@ def mocked_ec2_instances_envs(
322322
@pytest.fixture
323323
def disable_autoscaling_background_task(mocker: MockerFixture) -> None:
324324
mocker.patch(
325-
"simcore_service_autoscaling.modules.auto_scaling_task.create_periodic_task",
325+
"simcore_service_autoscaling.modules.cluster_scaling.auto_scaling_task.create_periodic_task",
326326
autospec=True,
327327
)
328328

329329
mocker.patch(
330-
"simcore_service_autoscaling.modules.auto_scaling_task.cancel_wait_task",
330+
"simcore_service_autoscaling.modules.cluster_scaling.auto_scaling_task.cancel_wait_task",
331331
autospec=True,
332332
)
333333

334334

335335
@pytest.fixture
336336
def disable_buffers_pool_background_task(mocker: MockerFixture) -> None:
337337
mocker.patch(
338-
"simcore_service_autoscaling.modules.buffer_machines_pool_task.create_periodic_task",
338+
"simcore_service_autoscaling.modules.cluster_scaling.buffer_machines_pool_task.create_periodic_task",
339339
autospec=True,
340340
)
341341

342342
mocker.patch(
343-
"simcore_service_autoscaling.modules.buffer_machines_pool_task.cancel_wait_task",
343+
"simcore_service_autoscaling.modules.cluster_scaling.buffer_machines_pool_task.cancel_wait_task",
344344
autospec=True,
345345
)
346346

@@ -900,7 +900,7 @@ async def _fake_set_node_availability(
900900
return returned_node
901901

902902
return mocker.patch(
903-
"simcore_service_autoscaling.modules.auto_scaling_core.utils_docker.set_node_availability",
903+
"simcore_service_autoscaling.modules.cluster_scaling._auto_scaling_core.utils_docker.set_node_availability",
904904
autospec=True,
905905
side_effect=_fake_set_node_availability,
906906
)
@@ -924,7 +924,7 @@ async def fake_tag_node(
924924
return updated_node
925925

926926
return mocker.patch(
927-
"simcore_service_autoscaling.modules.auto_scaling_core.utils_docker.tag_node",
927+
"simcore_service_autoscaling.modules.cluster_scaling._auto_scaling_core.utils_docker.tag_node",
928928
autospec=True,
929929
side_effect=fake_tag_node,
930930
)
@@ -1043,7 +1043,7 @@ def hot_buffer_instance_type(app_settings: ApplicationSettings) -> InstanceTypeT
10431043
@pytest.fixture
10441044
def mock_find_node_with_name_returns_none(mocker: MockerFixture) -> Iterator[mock.Mock]:
10451045
return mocker.patch(
1046-
"simcore_service_autoscaling.modules.auto_scaling_core.utils_docker.find_node_with_name",
1046+
"simcore_service_autoscaling.modules.cluster_scaling._auto_scaling_core.utils_docker.find_node_with_name",
10471047
autospec=True,
10481048
return_value=None,
10491049
)
@@ -1081,7 +1081,7 @@ async def _(
10811081
return [], ec2_instances
10821082

10831083
return mocker.patch(
1084-
"simcore_service_autoscaling.modules.auto_scaling_core.associate_ec2_instances_with_nodes",
1084+
"simcore_service_autoscaling.modules.cluster_scaling._auto_scaling_core.associate_ec2_instances_with_nodes",
10851085
autospec=True,
10861086
side_effect=_,
10871087
)

0 commit comments

Comments
 (0)