From 8d00200d5aa2011bc91ccc688ee93caf5b6980f6 Mon Sep 17 00:00:00 2001 From: Benjamin Klimczak Date: Wed, 5 Apr 2023 17:06:56 +0100 Subject: MLIA-825 Make backend installation more generic Use the backend registry to manage installation routines for different backends as well. This makes the process more generic and allows us to move towards plug & play for backends (i.e. there should be no code changes needed in the general MLIA code to add/support new backends). Change-Id: Ib7c772ec52b2f4d857c2c9871e44dfff97e9d970 --- tests/test_backend_config.py | 5 ++++- tests/test_target_config.py | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/test_backend_config.py b/tests/test_backend_config.py index 700534f..bdea03e 100644 --- a/tests/test_backend_config.py +++ b/tests/test_backend_config.py @@ -20,7 +20,10 @@ def test_system() -> None: def test_backend_config() -> None: """Test the class 'BackendConfiguration'.""" cfg = BackendConfiguration( - [AdviceCategory.COMPATIBILITY], [System.CURRENT], BackendType.CUSTOM + [AdviceCategory.COMPATIBILITY], + [System.CURRENT], + BackendType.CUSTOM, + None, ) assert cfg.supported_advice == [AdviceCategory.COMPATIBILITY] assert cfg.supported_systems == [System.CURRENT] diff --git a/tests/test_target_config.py b/tests/test_target_config.py index 368d394..8055af0 100644 --- a/tests/test_target_config.py +++ b/tests/test_target_config.py @@ -112,6 +112,7 @@ def test_target_info( [AdviceCategory.COMPATIBILITY], [System.CURRENT], BackendType.BUILTIN, + None, ), ) monkeypatch.setattr("mlia.target.config.backend_registry", backend_registry) -- cgit v1.2.1