<#10149 chore: Document `uv run python -m pytest` ...
# meltano-repo-activity
g
#10149 chore: Document `uv run python -m pytest` as the preferred way to run tests outside of a Nox session Pull request opened by edgarrmondragon Description This is because calling via
python
will also add the current directory to
sys.path
and allow imports from
tests.fixtures
to work correctly. https://docs.pytest.org/en/stable/how-to/usage.html#calling-pytest-through-python-m-pytest Checklist • I have read the contribution guide Was generative AI tooling used to co-author this PR? • Yes (please specify the tool below) Related Issues • Closes #XXXX Summary by Sourcery Standardize guidance on running pytest via
uv run python -m pytest
instead of
uv run pytest
across CI and contributor docs. CI: • Update benchmark workflow to invoke tests with
uv run python -m pytest
for correct import behavior. Documentation: • Refresh agent and contributor testing instructions to recommend
uv run python -m pytest
as the preferred way to run tests outside Nox. meltano/meltano