diff --git a/lib/molecule_podman/test/test_func.py b/lib/molecule_podman/test/test_func.py index 46f719a..5747e11 100644 --- a/lib/molecule_podman/test/test_func.py +++ b/lib/molecule_podman/test/test_func.py @@ -4,7 +4,6 @@ import molecule_podman import pytest -import sh from molecule import logger from molecule.test.conftest import change_dir_to, run_command @@ -23,20 +22,27 @@ def format_result(result: subprocess.CompletedProcess): def test_command_init_scenario(temp_dir, DRIVER): """Verify that init scenario works.""" role_directory = os.path.join(temp_dir.strpath, "test-init") - options = {} - cmd = sh.molecule.bake("init", "role", "test-init", **options) + cmd = ["molecule", "init", "role", "test-init"] run_command(cmd) with change_dir_to(role_directory): molecule_directory = pytest.helpers.molecule_directory() scenario_directory = os.path.join(molecule_directory, "test-scenario") - options = {"role_name": "test-init", "driver-name": DRIVER} - cmd = sh.molecule.bake("init", "scenario", "test-scenario", **options) + cmd = [ + "molecule", + "init", + "scenario", + "test-scenario", + "--role_name", + "test-init", + "--driver-name", + DRIVER, + ] run_command(cmd) assert os.path.isdir(scenario_directory) - cmd = sh.molecule.bake("--debug", "test", "-s", "test-scenario") + cmd = ["molecule", "--debug", "test", "-s", "test-scenario"] run_command(cmd) diff --git a/setup.cfg b/setup.cfg index f7e32b6..ceecb3d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -66,7 +66,7 @@ setup_requires = # These are required in actual runtime: install_requires = - molecule >= 3.1.2 + molecule >= 3.2.0a0 # selinux python module is needed as least by ansible-podman modules # and allows us of isolated (default) virtualenvs. It does not avoid need # to install the system selinux libraries but it will provide a clear