facebook / facebook/TestSlide

Improve mock(_async)_callable & mock_constructor exceptions.

Aperta
#189 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Better Error Messages easy enhancement mock_constructor mock(_async)_callable
Lingua principale
Python
Stelle
149
Fork
62
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

With #184 adding caller_frame_info to mock instances, we can now improve all exceptions that are raised by these mocks, ta all contain information regarding the file:lineno where the mock was defined.

This is a frequently asked feature by uses, which should simplify development significantly.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.