-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpytest.ini
More file actions
21 lines (18 loc) · 813 Bytes
/
Copy pathpytest.ini
File metadata and controls
21 lines (18 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[pytest]
DJANGO_SETTINGS_MODULE = config.settings.test
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Opções padrão:
# -v → verbose (mostra nome de cada teste)
# --tb=short → traceback resumido (mais legível)
# --no-header → remove cabeçalho repetitivo do pytest
# -p no:warnings → suprime warnings de terceiros (manter limpo)
addopts = -v --tb=short --no-header -p no:warnings
# Marcadores personalizados (registrados para evitar warnings)
markers =
unit: Teste unitário puro, sem banco de dados
integration: Teste de integração (banco + scraper real)
slow: Teste lento (ex: download de PDF real)
# Diretórios a ignorar no discovery
norecursedirs = .git venv node_modules staticfiles media .pytest_cache __pycache__ migrations