diff --git a/test/docker/test_func.py b/test/docker/test_func.py index 44435e6..e3989d3 100644 --- a/test/docker/test_func.py +++ b/test/docker/test_func.py @@ -63,7 +63,7 @@ def test_command_static_scenario() -> None: """Validate that the scenario we included with code still works.""" cmd = ["molecule", "test"] - result = get_app(tmp_path).run_command(cmd) + result = get_app(Path()).run_command(cmd) assert result.returncode == 0 @@ -72,7 +72,7 @@ def test_dockerfile_with_context() -> None: """Verify that Dockerfile.j2 with context works.""" with change_dir_to("test/docker/scenarios/with-context"): cmd = ["molecule", "--debug", "test"] - result = get_app(tmp_path).run_command(cmd) + result = get_app(Path()).run_command(cmd) assert result.returncode == 0 @@ -82,5 +82,5 @@ def test_env_substitution() -> None: os.environ["MOLECULE_ROLE_IMAGE"] = "debian:bullseye" with change_dir_to("test/docker/scenarios/env-substitution"): cmd = ["molecule", "--debug", "test"] - result = get_app(tmp_path).run_command(cmd) + result = get_app(Path()).run_command(cmd) assert result.returncode == 0