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

Commit a84c2c9

Browse files
authored
Fixed broken test (#34)
Related: ansible/molecule#3171
1 parent f521b47 commit a84c2c9

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

src/molecule_containers/test/functional/test_containers.py

+4-11
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,13 @@
3030

3131
def test_command_init_scenario(temp_dir):
3232
"""Verify that we can initialize a new scenario with this driver."""
33-
role_directory = os.path.join(temp_dir.strpath, "test-init")
34-
cmd = ["molecule", "init", "role", "test-init"]
35-
result = run_command(cmd)
36-
assert result.returncode == 0
37-
38-
with change_dir_to(role_directory):
39-
scenario_directory = os.path.join(molecule_directory(), "test-scenario")
33+
with change_dir_to(temp_dir):
34+
scenario_directory = os.path.join(molecule_directory(), "default")
4035
cmd = [
4136
"molecule",
4237
"init",
4338
"scenario",
44-
"test-scenario",
45-
"--role-name",
46-
"test-init",
39+
"default",
4740
"--driver-name",
4841
"containers",
4942
]
@@ -55,6 +48,6 @@ def test_command_init_scenario(temp_dir):
5548
# we do not run the full "test" sequence because lint will fail, check
5649
# is shorter but comprehensive enough to test the most important
5750
# functionality: destroy, dependency, create, prepare, converge
58-
cmd = ["molecule", "check", "-s", "test-scenario"]
51+
cmd = ["molecule", "check", "-s", "default"]
5952
result = run_command(cmd)
6053
assert result.returncode == 0

0 commit comments

Comments
 (0)