From 3e3dcb9bd5abb88adcd85b4f89e8a81e7f6fa293 Mon Sep 17 00:00:00 2001 From: Dmitrii Agibov Date: Fri, 27 Jan 2023 09:12:50 +0000 Subject: MLIA-595 Remove old backend configuration mechanism - Remove old backend configuration code - Install backends into directory ~/.mlia - Rename targets/backends in registry to make it consistent across codebase. Change-Id: I9c8b012fe863280f1c692940c0dcad3ef638aaae --- tests/test_utils_proc.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/test_utils_proc.py (limited to 'tests/test_utils_proc.py') diff --git a/tests/test_utils_proc.py b/tests/test_utils_proc.py new file mode 100644 index 0000000..bea431f --- /dev/null +++ b/tests/test_utils_proc.py @@ -0,0 +1,17 @@ +# SPDX-FileCopyrightText: Copyright 2023, Arm Limited and/or its affiliates. +# SPDX-License-Identifier: Apache-2.0 +"""Tests for process management functions.""" +from unittest.mock import MagicMock + +from mlia.utils.proc import Command +from mlia.utils.proc import process_command_output + + +def test_process_command_output() -> None: + """Test function process_command_output.""" + command = Command(["echo", "-n", "sample message"]) + + output_consumer = MagicMock() + process_command_output(command, [output_consumer]) + + output_consumer.assert_called_once_with("sample message") -- cgit v1.2.1