Skip to content

Commit

Permalink
Merge pull request #2 from shalomb/concept
Browse files Browse the repository at this point in the history
bugfix: stringify module path before sys.path.append
  • Loading branch information
shalomb authored Dec 1, 2024
2 parents 3a08697 + 85d54d9 commit ba005f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_terrapyne_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import sys
import tempfile

sys.path.append(Path(f"{__file__}/../src").resolve())
sys.path.append(str(Path(f"{__file__}/../src").resolve()))

import terrapyne
import terrapyne.logging
Expand Down Expand Up @@ -49,7 +49,7 @@ def test_invalid_version(self) -> None:
# expected failures in running terraform
with pytest.raises(terrapyne.terrapyne.exceptions.TerraformVersionException):
os.chdir(tmpdir)
terraform = terrapyne.Terraform(workspace_directory=tmpdir, required_version='999')
terraform = terrapyne.Terraform(workspace_directory=tmpdir, required_version="999")

with open("main.tf", "a") as f:
f.write(
Expand Down

0 comments on commit ba005f6

Please sign in to comment.