pytest-factoryboy icon indicating copy to clipboard operation
pytest-factoryboy copied to clipboard

Allow disabling factory deps

Open charlax opened this issue 6 years ago • 2 comments

Proof of concept fix of #69


This change is Reviewable

charlax avatar May 17 '19 08:05 charlax

Any interest in this?

charlax avatar Feb 26 '20 09:02 charlax

This "magic" factory dependencies has bit me more than once. Just today I spent at least a couple of hours before I remembered the "issue"... I had a RelatedFactory with some attribute overrides, that I could not understand why was not working (i.e. the attributes "reset" to the default related factory as registered by the fixture). So I very much want something like this, however, I'd like it to be per-factory. Perhaps a meta class flag?

asteinlein avatar Aug 03 '20 20:08 asteinlein