facebook/TestSlide

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

Open

#155 创建于 2020年4月9日

在 GitHub 查看
 (1 评论) (0 反应) (1 负责人)Python (58 fork)auto 404
enhancementhelp wantedmock_constructor

仓库指标

Star
 (147 star)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南