uchill/backend/pytest.ini

31 lines
1.0 KiB
INI
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[pytest]
# Конфигурация pytest для проекта
DJANGO_SETTINGS_MODULE = config.settings
python_files = tests.py test_*.py *_tests.py
python_classes = Test*
python_functions = test_*
addopts =
--verbose
--tb=short
--strict-markers
--maxfail=5
--no-migrations
--reuse-db
# Coverage опции (закомментированы, если pytest-cov не установлен)
# --cov=apps
# --cov-report=html
# --cov-report=term-missing
# --cov-fail-under=70
markers =
unit: Юнит-тесты (быстрые, изолированные)
integration: Интеграционные тесты (с БД, внешними сервисами)
slow: Медленные тесты
api: API тесты
websocket: WebSocket тесты
celery: Celery задачи тесты
performance: Тесты производительности (измерение времени и SQL запросов)
filterwarnings =
ignore::DeprecationWarning
ignore::PendingDeprecationWarning