Task 3: remove config_file_service facade, update direct imports and tests

This commit is contained in:
2026-04-15 21:16:00 +02:00
parent 0e22d1c425
commit cdb0c3681e
10 changed files with 385 additions and 1580 deletions

View File

@@ -412,11 +412,11 @@ class TestRestartFail2ban:
AsyncMock(return_value=None),
),
patch(
"app.routers.config_misc.config_file_service.start_daemon",
"app.routers.config_misc.start_daemon",
AsyncMock(return_value=True),
),
patch(
"app.routers.config_misc.config_file_service.wait_for_fail2ban",
"app.routers.config_misc.wait_for_fail2ban",
AsyncMock(return_value=True),
),
):
@@ -432,11 +432,11 @@ class TestRestartFail2ban:
AsyncMock(return_value=None),
),
patch(
"app.routers.config_misc.config_file_service.start_daemon",
"app.routers.config_misc.start_daemon",
AsyncMock(return_value=True),
),
patch(
"app.routers.config_misc.config_file_service.wait_for_fail2ban",
"app.routers.config_misc.wait_for_fail2ban",
AsyncMock(return_value=False),
),
):
@@ -477,11 +477,11 @@ class TestRestartFail2ban:
AsyncMock(return_value=None),
),
patch(
"app.routers.config_misc.config_file_service.start_daemon",
"app.routers.config_misc.start_daemon",
mock_start,
),
patch(
"app.routers.config_misc.config_file_service.wait_for_fail2ban",
"app.routers.config_misc.wait_for_fail2ban",
AsyncMock(return_value=True),
),
):