diff options
author | Benjamin Klimczak <benjamin.klimczak@arm.com> | 2023-01-11 12:32:02 +0000 |
---|---|---|
committer | Benjamin Klimczak <benjamin.klimczak@arm.com> | 2023-02-08 15:23:29 +0000 |
commit | a4fb8c72f15146c95df16c25e75f03344e9814fd (patch) | |
tree | ce6d9cf39951a0c85d2773d436cc5010ecf78a8f /tests/test_utils_filesystem.py | |
parent | 09ecc5c8acb758e8def33155feb746a34dd7b560 (diff) | |
download | mlia-a4fb8c72f15146c95df16c25e75f03344e9814fd.tar.gz |
MLIA-591 Create interface for target profiles
New class 'TargetProfile' is used to load and verify target profiles.
Change-Id: I76373a923e2e5f55c4e95860635afe9fc5627a5d
Diffstat (limited to 'tests/test_utils_filesystem.py')
-rw-r--r-- | tests/test_utils_filesystem.py | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/tests/test_utils_filesystem.py b/tests/test_utils_filesystem.py index 954f9e3..d0a6e6f 100644 --- a/tests/test_utils_filesystem.py +++ b/tests/test_utils_filesystem.py @@ -9,10 +9,8 @@ import pytest from mlia.utils.filesystem import all_files_exist from mlia.utils.filesystem import all_paths_valid from mlia.utils.filesystem import copy_all -from mlia.utils.filesystem import get_builtin_supported_profile_names from mlia.utils.filesystem import get_mlia_resources from mlia.utils.filesystem import get_mlia_target_profiles_dir -from mlia.utils.filesystem import get_profile from mlia.utils.filesystem import get_vela_config from mlia.utils.filesystem import sha256 from mlia.utils.filesystem import temp_directory @@ -36,31 +34,6 @@ def test_get_mlia_target_profiles() -> None: assert get_mlia_target_profiles_dir().is_dir() -def test_get_builtin_supported_profile_names() -> None: - """Test profile names getter.""" - assert get_builtin_supported_profile_names() == [ - "cortex-a", - "ethos-u55-128", - "ethos-u55-256", - "ethos-u65-256", - "ethos-u65-512", - "tosa", - ] - - -def test_get_profile() -> None: - """Test getting profile data.""" - assert get_profile("ethos-u55-256") == { - "target": "ethos-u55", - "mac": 256, - "memory_mode": "Shared_Sram", - "system_config": "Ethos_U55_High_End_Embedded", - } - - with pytest.raises(Exception, match=r"File not found:*"): - get_profile("unknown") - - @pytest.mark.parametrize("raise_exception", [True, False]) def test_temp_file(raise_exception: bool) -> None: """Test temp_file context manager.""" |