Skip to content

Commit

Permalink
Adjust integration tests for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mknorps committed Nov 28, 2023
1 parent 2cf5e6b commit 3904f1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/project_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def venv_script_lines(self, venv_path: Path) -> List[str]:
for req in self.requirements
]
+ [
f"{create_empty_file} {venv_path}/.installed",
f"{create_empty_file} {venv_path / '.installed'}",
]
)

Expand Down
4 changes: 3 additions & 1 deletion tests/test_real_projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"""
import json
import logging
import os
import subprocess
import sys
import tarfile
from dataclasses import dataclass
from pathlib import Path
Expand Down Expand Up @@ -51,7 +53,7 @@ def verify_requirements(venv_path: Path, requirements: List[str]) -> None:
def run_fawltydeps_json(
*args: str, venv_dir: Optional[Path], cwd: Optional[Path] = None
) -> JsonData:
argv = ["fawltydeps", "--config-file=/dev/null", "--json"]
argv = [sys.executable, "-m", "fawltydeps", f"--config-file={os.devnull}", "--json"]
if venv_dir is not None:
argv += [f"--pyenv={venv_dir}"]
proc = subprocess.run(
Expand Down

0 comments on commit 3904f1a

Please sign in to comment.