Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: centralize --doctest-modules option in pytest.ini #86

Merged
merged 1 commit into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ darglint-files: ## run darglint for specific files (specified with files="file1
test: ## run tests quickly with the default Python
pytest \
tests/ \
--doctest-modules black_it \
black_it \
--cov=black_it \
--cov-report=xml \
--cov-report=html \
Expand Down
2 changes: 2 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ log_cli_date_format=%Y-%m-%d %H:%M:%S

markers =
e2e: marks end-to-end tests which involve several library components.

addopts = --doctest-modules
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ deps =
mistletoe==1.2.1

commands =
pytest --basetemp={envtmpdir} --doctest-modules \
pytest --basetemp={envtmpdir} \
black_it tests/ \
--cov=black_it \
--ignore=example/models \
Expand Down
Loading