Skip to content

test(python): pytest settings from tox.ini and setup.cfg - #316

Closed
sarankumar1325 wants to merge 1 commit into
DiffCI:mainfrom
sarankumar1325:test/pytest-tox-setup-cfg
Closed

sarankumar1325 wants to merge 1 commit into
DiffCI:mainfrom
sarankumar1325:test/pytest-tox-setup-cfg

Conversation

@sarankumar1325

Copy link
Copy Markdown
Contributor

Closes #161

Test-only. readPytestSettings reads [pytest] from tox.ini and [tool:pytest] from setup.cfg, but tests/repo/python-adapter.test.ts only covered pytest.ini and pyproject.toml.

New cases:

  • tox.ini [pytest] between [tox] and [testenv]. python_files and testpaths are both continued on indented lines, and isPytestFile follows the result.
  • setup.cfg [tool:pytest] with python_files, pythonpath, and a testpaths = whose values are all on continuation lines.
  • A tox.ini with no [pytest] section is skipped and setup.cfg is used.

All three pass on main, so there's no bug to report. npm run typecheck passes. DCO signed off.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T04:25:20.926067Z c25890a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

adityankale190895 pushed a commit that referenced this pull request Nov 18, 2026
@adityankale190895

Copy link
Copy Markdown
Member

Merged to main as fdfdda4 (squashed, authorship kept). It conflicted with #314/#315 only in the test file, so I resolved that on main. Thanks!

adityankale190895 added a commit that referenced this pull request Nov 18, 2026
Credit the pytest configuration fixes (#314, #315, #316) under the
Python fallback reasons, and the pytest declared-inputs example (#319)
next to the example.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: adityankale190895 <[email protected]>
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.

Tests: pytest settings from tox.ini and setup.cfg

2 participants