Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zackees committed Mar 28, 2024
1 parent 329282c commit 6bd426d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/test_createapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,15 @@ def test_imports(self) -> None:
os.chdir(outdir)

cmds = [
"bash ./install",
"bash ./activate.sh && pip install -r requirements.testing.txt",
"bash install",
"bash activate.sh && pip install -r requirements.testing.txt",
"black src",
"black tests",
"python tests/test_cli.py",
"bash ./lint",
"bash lint",
"bash test",
]
assert os.path.exists(os.path.join(outdir, "lint"))
env_with_current_dir = os.environ.copy()
os_sep = ";" if os.name == "nt" else ":"
env_with_current_dir["PATH"] = f"{outdir}{os_sep}{env_with_current_dir['PATH']}"
env_with_current_dir.pop("IN_ACTIVATED_ENV", None)
for cmd in cmds:
print(f"Running command: {cmd} in {outdir}")
Expand Down

0 comments on commit 6bd426d

Please sign in to comment.