From 41e64ca7523db84e00bfbc005726876371a40063 Mon Sep 17 00:00:00 2001 From: Oliver Wannenwetsch Date: Wed, 23 Oct 2024 12:16:50 +0000 Subject: [PATCH] Fixed pytests by findings of mypy --- providers/tests/edge/cli/test_edge_command.py | 2 +- providers/tests/edge/models/test_edge_worker.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/providers/tests/edge/cli/test_edge_command.py b/providers/tests/edge/cli/test_edge_command.py index 5014edea11d4a..51aad5806802e 100644 --- a/providers/tests/edge/cli/test_edge_command.py +++ b/providers/tests/edge/cli/test_edge_command.py @@ -120,7 +120,7 @@ def returncode(self): @pytest.fixture def worker_with_job(self, tmp_path: Path, dummy_joblist: list[_Job]) -> _EdgeWorkerCli: - test_worker = _EdgeWorkerCli(tmp_path / "dummy.pid", "dummy", None, 8, 5, 5) + test_worker = _EdgeWorkerCli(str(tmp_path / "dummy.pid"), "dummy", None, 8, 5, 5) test_worker.jobs = dummy_joblist return test_worker diff --git a/providers/tests/edge/models/test_edge_worker.py b/providers/tests/edge/models/test_edge_worker.py index d67cfdbb2cd61..20e394ffd5767 100644 --- a/providers/tests/edge/models/test_edge_worker.py +++ b/providers/tests/edge/models/test_edge_worker.py @@ -39,7 +39,7 @@ class TestEdgeWorker: @pytest.fixture def cli_worker(self, tmp_path: Path) -> _EdgeWorkerCli: - test_worker = _EdgeWorkerCli(tmp_path / "dummy.pid", "dummy", None, 8, 5, 5) + test_worker = _EdgeWorkerCli(str(tmp_path / "dummy.pid"), "dummy", None, 8, 5, 5) return test_worker @pytest.fixture(autouse=True)