26 lines
1 KiB
INI
26 lines
1 KiB
INI
[pytest]
|
|
testpaths = tests
|
|
pythonpath = .
|
|
python_files = test_*.py
|
|
python_classes = Test*
|
|
python_functions = test*
|
|
log_file = logs/test_logs.log
|
|
log_file_level = INFO
|
|
log_file_format = %(asctime)s %(levelname)s %(message)s
|
|
log_file_date_format = %Y-%m-%d %H:%M:%S
|
|
# Only run non-expensive and non-live tests by default, verbose log, short traceback
|
|
# Use 'pytest -m ""' to run ALL tests.
|
|
addopts = -v --tb=short -m 'not expensive and not live'
|
|
|
|
markers =
|
|
expensive: tests that take longer than a few seconds (e.g. heavy DB or AI)
|
|
live: integration tests that hit a live external service (e.g. Redmine SSS sandbox)
|
|
|
|
# Suppress deprecation warnings from third-party libraries
|
|
filterwarnings =
|
|
ignore::DeprecationWarning:pkg_resources
|
|
ignore::DeprecationWarning:google.cloud.translate_v2
|
|
ignore::DeprecationWarning:passlib.handlers.argon2
|
|
ignore:pkg_resources is deprecated:DeprecationWarning
|
|
ignore:Deprecated call to.*pkg_resources.declare_namespace:DeprecationWarning
|
|
ignore:Accessing argon2.__version__ is deprecated:DeprecationWarning
|