forked from lucadileo9/formazing
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
35 lines (30 loc) · 1.15 KB
/
pytest.ini
File metadata and controls
35 lines (30 loc) · 1.15 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
31
32
33
34
35
[pytest]
minversion = 6.0
addopts = -ra -q --tb=short
testpaths = tests
# Markers per categorizzare i test
markers =
real_telegram: test che inviano messaggi reali su Telegram (richiede conferma)
unit: test unitari veloci senza dipendenze esterne
notion: test specifici per moduli NotionService
integration: test di integrazione che usano più componenti
e2e: test end-to-end con dati reali e servizi esterni
mock_only: test che usano solo mock (nessun servizio reale)
slow: test che richiedono più tempo per completare
# Per default escludi test che inviano messaggi reali
# Uso: pytest (esegue solo test sicuri)
# Uso: pytest -m "real_telegram" (esegue solo test reali)
# Uso: pytest -m "not real_telegram" (escludi test reali)
; addopts = -m "not real_telegram"
# Configurazione asyncio
asyncio_mode = auto
# Output più dettagliato per debug
log_cli = true
log_cli_level = INFO
log_cli_format = %(asctime)s [%(levelname)8s] %(name)s: %(message)s
log_cli_date_format = %Y-%m-%d %H:%M:%S
# Ignora warning specifici
filterwarnings =
ignore::DeprecationWarning
ignore::PendingDeprecationWarning
ignore:.*telegram.*:UserWarning