From c6cfc78d5245c550016b9709686d2b32ab3fcd5b Mon Sep 17 00:00:00 2001 From: Dmitrii Agibov Date: Thu, 2 Feb 2023 09:07:02 +0000 Subject: MLIA-461 Add parameter for the output directory - Add CLI parameter --output-dir - Rename ExecutionContext property working_dir into output_dir - Remove logic for default command as it is no longer needed Change-Id: I6387f6b688520ba1fc69a80167587297353620f6 --- tests/test_core_workflow.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/test_core_workflow.py') diff --git a/tests/test_core_workflow.py b/tests/test_core_workflow.py index 470e572..d21ced8 100644 --- a/tests/test_core_workflow.py +++ b/tests/test_core_workflow.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright 2022, Arm Limited and/or its affiliates. +# SPDX-FileCopyrightText: Copyright 2022-2023, Arm Limited and/or its affiliates. # SPDX-License-Identifier: Apache-2.0 """Tests for module workflow.""" from dataclasses import dataclass @@ -62,7 +62,7 @@ def test_workflow_executor(tmpdir: str) -> None: advice_producer_mock2.get_advice.return_value = [Advice(["Good advice!"])] context = ExecutionContext( - working_dir=tmpdir, + output_dir=tmpdir, event_handlers=[handler_mock], event_publisher=DefaultEventPublisher(), ) @@ -127,7 +127,7 @@ def test_workflow_executor_failed(tmpdir: str) -> None: handler_mock = MagicMock(spec=EventHandler) context = ExecutionContext( - working_dir=tmpdir, + output_dir=tmpdir, event_handlers=[handler_mock], event_publisher=DefaultEventPublisher(), ) -- cgit v1.2.1