Corp/backend/pytest.ini
2026-03-31 17:19:59 +03:00

34 lines
1.3 KiB
INI
Raw 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]
DJANGO_SETTINGS_MODULE = eusrr_backend.settings_test
python_files = tests.py test_*.py *_tests.py
# Asyncio mode
asyncio_mode = auto
asyncio_default_fixture_loop_scope = function
# Markers для категоризации тестов
markers =
manual: marks tests as manual (not run by default)
integration: marks tests as integration tests
slow: marks tests as slow running
asyncio: marks tests as asynchronous tests
performance: marks tests as performance tests
# Исключить manual tests по умолчанию
addopts = -m "not manual" --strict-markers
# Пути для сбора тестов
testpaths = tests employees documents
# Игнорировать директории
norecursedirs = .git .venv __pycache__ node_modules staticfiles media scripts tests/manual
# Опции для вывода
console_output_style = progress
filterwarnings =
ignore:tagMap is deprecated\. Please use TAG_MAP instead\.:DeprecationWarning:pyasn1\.codec\.ber\.encoder
ignore:typeMap is deprecated\. Please use TYPE_MAP instead\.:DeprecationWarning:pyasn1\.codec\.ber\.encoder
ignore:datetime\.datetime\.utcfromtimestamp\(\) is deprecated:DeprecationWarning:ldapdb\.models\.fields
ignore:The 'django-fsm' package has been integrated into 'viewflow' as 'viewflow\.fsm'.*:UserWarning:django_fsm