From 0efca3cadbad5517a59884576ddb90cfe7ac30f8 Mon Sep 17 00:00:00 2001 From: Diego Russo Date: Mon, 30 May 2022 13:34:14 +0100 Subject: Add MLIA codebase Add MLIA codebase including sources and tests. Change-Id: Id41707559bd721edd114793618d12ccd188d8dbd --- tests/aiet/test_main.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/aiet/test_main.py (limited to 'tests/aiet/test_main.py') diff --git a/tests/aiet/test_main.py b/tests/aiet/test_main.py new file mode 100644 index 0000000..f2ebae2 --- /dev/null +++ b/tests/aiet/test_main.py @@ -0,0 +1,16 @@ +# SPDX-FileCopyrightText: Copyright 2022, Arm Limited and/or its affiliates. +# SPDX-License-Identifier: Apache-2.0 +"""Module for testing AIET main.py.""" +from typing import Any +from unittest.mock import MagicMock + +from aiet import main + + +def test_main(monkeypatch: Any) -> None: + """Test main entry point function.""" + with monkeypatch.context() as mock_context: + mock = MagicMock() + mock_context.setattr(main, "cli", mock) + main.main() + mock.assert_called_once() -- cgit v1.2.1