From 302ce432829ae7c25e100a5cca718f0aadbe4fd4 Mon Sep 17 00:00:00 2001 From: Dmitrii Agibov Date: Tue, 15 Nov 2022 13:19:53 +0000 Subject: MLIA-649 Support tosa-checker as a backend - Add new type of the backend based on python packages - Add installation class for TOSA checker - Update documentation - Extend support of the parameter "force" in the "install" command Change-Id: I95567b75e1cfe85daa1f1c3d359975bb67b2504e --- tests/test_cli_commands.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'tests/test_cli_commands.py') diff --git a/tests/test_cli_commands.py b/tests/test_cli_commands.py index f6e0843..3a01f78 100644 --- a/tests/test_cli_commands.py +++ b/tests/test_cli_commands.py @@ -175,16 +175,17 @@ def test_backend_command_action_uninstall( @pytest.mark.parametrize( - "i_agree_to_the_contained_eula, backend_name, expected_calls", + "i_agree_to_the_contained_eula, force, backend_name, expected_calls", [ - [False, "backend_name", [call("backend_name", True)]], - [True, "backend_name", [call("backend_name", False)]], - [True, "BACKEND_NAME", [call("BACKEND_NAME", False)]], + [False, False, "backend_name", [call("backend_name", True, False)]], + [True, False, "backend_name", [call("backend_name", False, False)]], + [True, True, "BACKEND_NAME", [call("BACKEND_NAME", False, True)]], ], ) def test_backend_command_action_add_download( installation_manager_mock: MagicMock, i_agree_to_the_contained_eula: bool, + force: bool, backend_name: str, expected_calls: Any, ) -> None: @@ -192,6 +193,7 @@ def test_backend_command_action_add_download( backend_install( name=backend_name, i_agree_to_the_contained_eula=i_agree_to_the_contained_eula, + force=force, ) assert installation_manager_mock.download_and_install.mock_calls == expected_calls -- cgit v1.2.1