facebook / facebook/TestSlide

Support for classes that define `__new__` for `mock_constructor`

Aperta
#155 1 commento 0 reazioni 1 assegnatario Rivendicata da @deathowl Vedi su GitHub
enhancement help wanted mock_constructor
Lingua principale
Python
Stelle
149
Fork
62
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

It currently has no support for classes with `__new__`, and will reject patching those.

IIRC, it was tough getting around Python idiosyncrasies to make `mock_constructor` work, and I willingly decided not to implement `__new__` at first to simplify things, but this is potentially doable.

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.