Skip to content

Commit

Permalink
test/docker/test_func.py:70:22: F821 Undefined name tmp_path
Browse files Browse the repository at this point in the history
  • Loading branch information
hswong3i committed Jan 22, 2025
1 parent 2e75b68 commit 6c70d52
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/docker/test_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand All @@ -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


Expand All @@ -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

0 comments on commit 6c70d52

Please sign in to comment.