Конфигурация pytest (необязательно)
This commit is contained in:
39
pytest.ini
Normal file
39
pytest.ini
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
[pytest]
|
||||||
|
|
||||||
|
minversion = 7.0
|
||||||
|
|
||||||
|
# Где искать тесты
|
||||||
|
testpaths =
|
||||||
|
tests
|
||||||
|
|
||||||
|
# Правила обнаружения тестов
|
||||||
|
python_files = test_*.py
|
||||||
|
python_classes = Test*
|
||||||
|
python_functions = test_*
|
||||||
|
|
||||||
|
# Опции запуска
|
||||||
|
addopts =
|
||||||
|
-ra
|
||||||
|
-vv
|
||||||
|
--strict-markers
|
||||||
|
--strict-config
|
||||||
|
--tb=short
|
||||||
|
--maxfail=1
|
||||||
|
--durations=10
|
||||||
|
|
||||||
|
# Async support
|
||||||
|
asyncio_mode = strict
|
||||||
|
|
||||||
|
# Логи во время тестов
|
||||||
|
log_cli = true
|
||||||
|
log_cli_level = INFO
|
||||||
|
|
||||||
|
# Маркеры
|
||||||
|
markers =
|
||||||
|
slow: slow tests
|
||||||
|
integration: integration tests
|
||||||
|
e2e: end-to-end tests
|
||||||
|
|
||||||
|
# Фильтрация предупреждений
|
||||||
|
filterwarnings =
|
||||||
|
ignore::DeprecationWarning
|
||||||
Reference in New Issue
Block a user