diff options
author | Dmitrii Agibov <dmitrii.agibov@arm.com> | 2022-11-15 13:19:53 +0000 |
---|---|---|
committer | Dmitrii Agibov <dmitrii.agibov@arm.com> | 2022-11-16 09:42:15 +0000 |
commit | 302ce432829ae7c25e100a5cca718f0aadbe4fd4 (patch) | |
tree | 96e31bc88f795752ecaa6a9672fe512f8b0d9041 /tests/test_cli_commands.py | |
parent | 47fc50576e7040680c19e152592b2c5e5cc297f5 (diff) | |
download | mlia-302ce432829ae7c25e100a5cca718f0aadbe4fd4.tar.gz |
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
Diffstat (limited to 'tests/test_cli_commands.py')
-rw-r--r-- | tests/test_cli_commands.py | 10 |
1 files changed, 6 insertions, 4 deletions
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 |