From 6c70d52744a7242ff43fd9d78a30e6f384cde71b Mon Sep 17 00:00:00 2001 From: Wong Hoi Sing Edison Date: Wed, 22 Jan 2025 22:40:14 +0800 Subject: [PATCH] test/docker/test_func.py:70:22: F821 Undefined name `tmp_path` --- test/docker/test_func.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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