django-autofixture icon indicating copy to clipboard operation
django-autofixture copied to clipboard

Allow muting signals in a way similar to factoryboy

Open oliveratutexas opened this issue 7 years ago • 1 comments

Autofixture works naively and has a tendency to trigger signals on models downstream from the intended model. Factory boy has a method for silencing signals on explicit models, perhaps in auto-fixture there could be a way to do this "automagically"?

oliveratutexas avatar Aug 06 '18 20:08 oliveratutexas

Actually, I figured out this is possible by using both libraries. If one uses factoryboy's decorator for silencing signals in whatever function they define as the entrypoint for creating fixtures or individual fixtures, you can get the benefits of both libraries.

oliveratutexas avatar Aug 14 '18 22:08 oliveratutexas