Task 3: remove config_file_service facade, update direct imports and tests
This commit is contained in:
@@ -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),
|
||||
),
|
||||
):
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user