aboutsummaryrefslogtreecommitdiff
path: root/tests/aiet/test_cli_common.py
diff options
context:
space:
mode:
authorBenjamin Klimczak <benjamin.klimczak@arm.com>2022-06-28 10:29:35 +0100
committerBenjamin Klimczak <benjamin.klimczak@arm.com>2022-07-08 10:57:19 +0100
commitc9b4089b3037b5943565d76242d3016b8776f8d2 (patch)
tree3de24f79dedf0f26f492a7fa1562bf684e13a055 /tests/aiet/test_cli_common.py
parentba2c7fcccf37e8c81946f0776714c64f73191787 (diff)
downloadmlia-c9b4089b3037b5943565d76242d3016b8776f8d2.tar.gz
MLIA-546 Merge AIET into MLIA
Merge the deprecated AIET interface for backend execution into MLIA: - Execute backends directly (without subprocess and the aiet CLI) - Fix issues with the unit tests - Remove src/aiet and tests/aiet - Re-factor code to replace 'aiet' with 'backend' - Adapt and improve unit tests after re-factoring - Remove dependencies that are not needed anymore (click and cloup) Change-Id: I450734c6a3f705ba9afde41862b29e797e511f7c
Diffstat (limited to 'tests/aiet/test_cli_common.py')
-rw-r--r--tests/aiet/test_cli_common.py37
1 files changed, 0 insertions, 37 deletions
diff --git a/tests/aiet/test_cli_common.py b/tests/aiet/test_cli_common.py
deleted file mode 100644
index d018e44..0000000
--- a/tests/aiet/test_cli_common.py
+++ /dev/null
@@ -1,37 +0,0 @@
-# SPDX-FileCopyrightText: Copyright 2022, Arm Limited and/or its affiliates.
-# SPDX-License-Identifier: Apache-2.0
-"""Test for cli common module."""
-from typing import Any
-
-import pytest
-
-from aiet.cli.common import print_command_details
-from aiet.cli.common import raise_exception_at_signal
-
-
-def test_print_command_details(capsys: Any) -> None:
- """Test print_command_details function."""
- command = {
- "command_strings": ["echo test"],
- "user_params": [
- {"name": "param_name", "description": "param_description"},
- {
- "name": "param_name2",
- "description": "param_description2",
- "alias": "alias2",
- },
- ],
- }
- print_command_details(command)
- captured = capsys.readouterr()
- assert "echo test" in captured.out
- assert "param_name" in captured.out
- assert "alias2" in captured.out
-
-
-def test_raise_exception_at_signal() -> None:
- """Test raise_exception_at_signal graceful shutdown."""
- with pytest.raises(Exception) as err:
- raise_exception_at_signal(1, "")
-
- assert str(err.value) == "Middleware shutdown requested"