Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
Remove molecule pytest helpers (#122)
Browse files Browse the repository at this point in the history
Since ansible/molecule#3195, molecule pytest
helpers are gone, so remove the code using them to use directly the molecule_directory()
function.

Signed-off-by: Arnaud Patard <apatard@hupstream.com>
  • Loading branch information
apatard committed Jul 22, 2021
1 parent b8b943b commit defcf80
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions molecule_vagrant/test/functional/test_func.py
Expand Up @@ -25,7 +25,7 @@
from molecule import util
from molecule import logger
from molecule.util import run_command
from molecule.test.conftest import change_dir_to
from molecule.test.conftest import change_dir_to, molecule_directory

LOG = logger.get_logger(__name__)

Expand All @@ -38,8 +38,7 @@ def test_command_init_scenario(temp_dir):
assert result.returncode == 0

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",
Expand Down

0 comments on commit defcf80

Please sign in to comment.