Skip to content

fix(ci): register pytest options in rootdir conftest for pytest 9.0#123

Merged
simontaurus merged 1 commit into
mainfrom
dev
Jun 16, 2026
Merged

fix(ci): register pytest options in rootdir conftest for pytest 9.0#123
simontaurus merged 1 commit into
mainfrom
dev

Conversation

@simontaurus

Copy link
Copy Markdown
Contributor

pytest 9.0 no longer loads pytest_addoption from tests/conftest.py when the path comes from testpaths, breaking --wiki_domain/--wiki_username/ --wiki_password ("unrecognized arguments"). Move pytest_addoption to a repo-root conftest.py (always loaded at startup) and drop the duplicate from tests/conftest.py; option-backed fixtures stay in tests/conftest.py

pytest 9.0 no longer loads pytest_addoption from tests/conftest.py when
the path comes from testpaths, breaking --wiki_domain/--wiki_username/
--wiki_password ("unrecognized arguments"). Move pytest_addoption to a
repo-root conftest.py (always loaded at startup) and drop the duplicate
from tests/conftest.py; option-backed fixtures stay in tests/conftest.py
@simontaurus simontaurus merged commit ee101c6 into main Jun 16, 2026
1 check passed
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