From ff0e5fa098b5fb2d3d48215b10e4ede355c5cb21 Mon Sep 17 00:00:00 2001 From: Imani Pelton Date: Fri, 24 Jan 2025 17:24:30 -0500 Subject: [PATCH] test: correct usrmerge fix test to check all python versions --- tests/unit/services/test_lifecycle.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/unit/services/test_lifecycle.py b/tests/unit/services/test_lifecycle.py index 7b906ca1c..85d701822 100644 --- a/tests/unit/services/test_lifecycle.py +++ b/tests/unit/services/test_lifecycle.py @@ -31,6 +31,7 @@ callbacks, ) from craft_parts.state_manager.prime_state import PrimeState +from rockcraft.plugins.python_common import get_python_plugins from rockcraft.services import lifecycle as lifecycle_module # pylint: disable=protected-access @@ -99,7 +100,7 @@ def test_lifecycle_package_repositories( mock_callback.assert_called_once_with(repositories.install_overlay_repositories) -@pytest.mark.parametrize("plugin_name", ["python", "poetry"]) +@pytest.mark.parametrize("plugin_name", get_python_plugins()) def test_python_usrmerge_fix(tmp_path, plugin_name): # The test setup is rather involved because we need to recreate/mock an # exact set of circumstances here: