Вывод loguru из негативных тестов больше не засоряет прогон: pytest перехватывает stderr и показывает его только для упавших тестов (секция «Captured stderr call»). Ни один тест не зависел от отключённого перехвата; полный прогон зелёный. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
27 lines
891 B
INI
27 lines
891 B
INI
[pytest]
|
|
pythonpath = .
|
|
testpaths =
|
|
tests
|
|
python_files =
|
|
test_*.py
|
|
tests*.py
|
|
python_classes = Test*
|
|
python_functions = test_*
|
|
asyncio_mode = auto
|
|
asyncio_default_fixture_loop_scope = session
|
|
asyncio_default_test_loop_scope = session
|
|
addopts =
|
|
--tb=short
|
|
--strict-markers
|
|
--verbose
|
|
env =
|
|
APP_ENV=test
|
|
ENV_FILE=.env.test
|
|
norecursedirs = .git __pycache__ .venv env build dist
|
|
# pydbml (dev-зависимость) вызывает устаревшие API pyparsing — шум библиотеки, не нашего кода
|
|
filterwarnings =
|
|
ignore::DeprecationWarning:pydbml.*
|
|
markers =
|
|
integration: тесты, которым нужны PostgreSQL/NATS (docker compose); запускаются отдельно от юнит-тестов
|
|
fixtures: тесты на реальных данных из ../fixtures (внутренний доступ)
|