From 5e58f37ee75760f19077555c161cea229e04b4f1 Mon Sep 17 00:00:00 2001 From: Verum Date: Sat, 7 Mar 2026 01:27:18 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9A=D0=BE=D0=BD=D1=84=D0=B8=D0=B3=D1=83?= =?UTF-8?q?=D1=80=D0=B0=D1=86=D0=B8=D1=8F=20pytest=20(=D0=BD=D0=B5=D0=BE?= =?UTF-8?q?=D0=B1=D1=8F=D0=B7=D0=B0=D1=82=D0=B5=D0=BB=D1=8C=D0=BD=D0=BE)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pytest.ini | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 pytest.ini diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 0000000..64ebf7c --- /dev/null +++ b/pytest.ini @@ -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