aboutsummaryrefslogtreecommitdiff
path: root/tests/test_tools_metadata_corstone.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_tools_metadata_corstone.py')
-rw-r--r--tests/test_tools_metadata_corstone.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/test_tools_metadata_corstone.py b/tests/test_tools_metadata_corstone.py
index 02c04d4..a7d81f2 100644
--- a/tests/test_tools_metadata_corstone.py
+++ b/tests/test_tools_metadata_corstone.py
@@ -469,3 +469,20 @@ def test_corstone_vht_install(
corstone_installation.install(InstallFromPath(Path("/opt/VHT")))
create_destination_and_install_mock.assert_called_once()
+
+
+def test_corstone_uninstall(
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
+ """Test the uninstall function in Corstone."""
+ remove_system_mock = MagicMock()
+
+ monkeypatch.setattr(
+ "mlia.tools.metadata.corstone.remove_system",
+ remove_system_mock,
+ )
+
+ installation = get_corstone_300_installation()
+
+ installation.uninstall()
+ remove_system_mock.assert_called_once_with("corstone_300")