Skip to content

Commit cad4454

Browse files
authored
Merge pull request #287 from Wolfvin/fix/issue-271d-check-positional-path
test(cli): fix doubled scripts path in check-positional test (refs #271 Group D)
2 parents 14eecf7 + 634232e commit cad4454

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,10 +316,10 @@ def test_check_full_cli_invocation_with_positional(self):
316316
try:
317317
cmd_scan(ws) # build registry so check has something to read
318318
proc = subprocess.run(
319-
[sys.executable, "scripts/codelens.py",
319+
[sys.executable, os.path.join(SCRIPT_DIR, "codelens.py"),
320320
"check", ws, "--severity", "high", "--format", "json"],
321321
capture_output=True, text=True, timeout=60,
322-
env={**os.environ, "PYTHONPATH": "scripts"},
322+
env={**os.environ, "PYTHONPATH": SCRIPT_DIR},
323323
)
324324
# ``check`` exits 1 when gate fails (which it likely will on the
325325
# sample workspace) — that's fine, we only care that argparse

0 commit comments

Comments
 (0)