-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathpytest.ini
More file actions
27 lines (27 loc) · 1.39 KB
/
Copy pathpytest.ini
File metadata and controls
27 lines (27 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
[pytest]
testpaths = tests
# No `pythonpath` here any more. It existed for exactly one reason: the rhiza checks were
# synced into `.rhiza/tests/` and had to be importable so the suite's modules could import
# each other. Since #1540 they arrive installed, as pytest-rhiza, so import resolution is
# pip's job and the project's own suite is reached through `testpaths` above.
# Disable live logs on console by default (opt in with: pytest -o log_cli=true --log-cli-level=DEBUG)
log_cli = false
# Show DEBUG+ messages
log_cli_level = DEBUG
log_cli_format = %(asctime)s %(levelname)s %(name)s: %(message)s
log_cli_date_format = %H:%M:%S
# Show extra summary info for skipped/failed tests
addopts = -ra
timeout = 60
# Treat the class-scoped-instance-method fixture deprecation as an error so it
# cannot silently regress. Matched by message rather than by warning category:
# the category name is version-specific (PytestRemovedIn9Warning vs ...In10Warning)
# and referencing a missing class breaks `--resolution lowest-direct` runs at
# parse time. Third-party DeprecationWarnings stay non-fatal.
filterwarnings =
error:Class-scoped fixture defined as instance method is deprecated
# Register custom markers
markers =
stress: marks tests as stress tests (deselect with '-m "not stress"')
property: marks tests as property-based tests
kaleido: marks tests that require the kaleido package for static image export