-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
30 lines (28 loc) · 1.13 KB
/
pytest.ini
File metadata and controls
30 lines (28 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
[pytest]
# Корневая папка проекта
testpaths = tests
# Игнорировать предупреждения
filterwarnings = ignore::DeprecationWarning
# Использовать asyncio для асинхронных тестов
asyncio_mode = auto
# Пакеты, которые нужно включать в поиск тестов
python_files = test_*.py
python_functions = test_*
# Настройки для параллельного выполнения тестов
# Используем pytest-xdist для параллельного выполнения
addopts =
-v
--tb=short
--strict-markers
--disable-warnings
--asyncio-mode=auto
# Маркеры для категоризации тестов
markers =
slow: marks tests as slow (deselect with '-m "not slow"')
integration: marks tests as integration tests
unit: marks tests as unit tests
auth: marks tests related to authentication
users: marks tests related to user management
cafes: marks tests related to cafe management
parallel: marks tests that can run in parallel
serial: marks tests that must run serially