diff options
author | Dmitrii Agibov <dmitrii.agibov@arm.com> | 2022-10-04 14:14:47 +0100 |
---|---|---|
committer | Dmitrii Agibov <dmitrii.agibov@arm.com> | 2022-10-04 15:12:33 +0100 |
commit | 2d6ec94a2a085e7fa4fc23c4c7dcda3206eec98c (patch) | |
tree | 80a7e00ec9b29508b8044c935da2afb4b7443789 /tests/test_backend_manager.py | |
parent | df5aa7561532f95ead0cd86053e0284b2723f566 (diff) | |
download | mlia-2d6ec94a2a085e7fa4fc23c4c7dcda3206eec98c.tar.gz |
MLIA-580 Fix test that produces untracked files
- Create separate test for the application execution,
update test application configuration file
- Use simple mock object in the test for the backend manager
Change-Id: Ia0f7f29d43a55223d7b2fb47348b0779a26e2268
Diffstat (limited to 'tests/test_backend_manager.py')
-rw-r--r-- | tests/test_backend_manager.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test_backend_manager.py b/tests/test_backend_manager.py index a1e9198..c22b4c1 100644 --- a/tests/test_backend_manager.py +++ b/tests/test_backend_manager.py @@ -15,7 +15,6 @@ import pytest from mlia.backend.application import get_application from mlia.backend.execution import ExecutionContext -from mlia.backend.execution import run_application from mlia.backend.manager import BackendRunner from mlia.backend.manager import DeviceInfo from mlia.backend.manager import estimate_performance @@ -377,7 +376,7 @@ class TestBackendRunner: expected_command: list[str], ) -> None: """Test method run_application with local systems.""" - run_app = MagicMock(wraps=run_application) + run_app = MagicMock() monkeypatch.setattr("mlia.backend.manager.run_application", run_app) backend_runner = BackendRunner() |