From d45e46b62aa221ae07b235cc2f78c676b782e046 Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Fri, 23 Jul 2021 12:51:42 +0100 Subject: [PATCH] Drop use of pytest helpers (#17) Related: https://github.com/ansible-community/molecule/pull/3195 --- molecule_containers/test/functional/test_containers.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/molecule_containers/test/functional/test_containers.py b/molecule_containers/test/functional/test_containers.py index b9d07c5..bc82992 100644 --- a/molecule_containers/test/functional/test_containers.py +++ b/molecule_containers/test/functional/test_containers.py @@ -21,13 +21,11 @@ """Functional Tests.""" import os -import pytest -from molecule import logger -from molecule.test.conftest import change_dir_to +from molecule.test.conftest import change_dir_to, molecule_directory from molecule.test.functional.conftest import metadata_lint_update from molecule.util import run_command -# import change_dir_to, temp_dir +from molecule import logger LOG = logger.get_logger(__name__) @@ -41,8 +39,7 @@ def test_command_init_scenario(temp_dir): metadata_lint_update(role_directory) with change_dir_to(role_directory): - molecule_directory = pytest.helpers.molecule_directory() - scenario_directory = os.path.join(molecule_directory, "test-scenario") + scenario_directory = os.path.join(molecule_directory(), "test-scenario") cmd = [ "molecule", "init",