Skip to content

Commit

Permalink
tests: make pytest configuration stricter (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed Sep 15, 2023
1 parent ebf30ff commit ec177ec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,18 @@ include = ["polyfactory", "tests", "examples"]
omit = ["*/tests/*"]

[tool.pytest.ini_options]
addopts = "tests docs/examples"
addopts = "--strict-config --strict-markers tests docs/examples"
asyncio_mode = "auto"
filterwarnings = [
"ignore:.*pkg_resources.declare_namespace\\('sphinxcontrib'\\).*:DeprecationWarning",
"ignore:pkg_resources is deprecated as an API:DeprecationWarning",
# Get rid those above once sphinxcontrib-mermaid doesn't use pkg_resources anymore
# https://github.com/mgaitan/sphinxcontrib-mermaid/issues/119
]
markers = [
# Marks tests that use `attrs` library
"attrs",
]

[tool.coverage.report]
exclude_lines = [
Expand Down

0 comments on commit ec177ec

Please sign in to comment.