Skip to content

test(cli): fix doubled scripts path in check-positional test (refs #271 Group D) - #287

Merged
Wolfvin merged 1 commit into
mainfrom
fix/issue-271d-check-positional-path
Jul 14, 2026
Merged

test(cli): fix doubled scripts path in check-positional test (refs #271 Group D)#287
Wolfvin merged 1 commit into
mainfrom
fix/issue-271d-check-positional-path

Conversation

@Wolfvin

@Wolfvin Wolfvin commented Jul 14, 2026

Copy link
Copy Markdown
Owner

Root cause: test_check_full_cli_invocation_with_positional invoked "scripts/codelens.py" + PYTHONPATH="scripts" (relative) — under CI's cd scripts && pytest cwd that resolved to scripts/scripts/codelens.py (file not found) → empty stdout → assert startswith('{') failed. Fixed to os.path.join(SCRIPT_DIR, "codelens.py") + PYTHONPATH=SCRIPT_DIR, matching sibling tests. Confirms the check command works — it was purely a test path-construction bug (verified: 1 passed). Test-only, closes another #271 Group D item.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@Wolfvin
Wolfvin merged commit cad4454 into main Jul 14, 2026
0 of 6 checks passed
@Wolfvin
Wolfvin deleted the fix/issue-271d-check-positional-path branch July 14, 2026 11:51
…(refs #271)

Used relative 'scripts/codelens.py' + PYTHONPATH='scripts'; under CI's
cd-scripts cwd that became scripts/scripts/codelens.py → empty output →
assertion failed. Use SCRIPT_DIR (absolute), matching sibling tests. Confirms
the 'check' command itself is fine — it was a test path-construction bug.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant