gregmuellegger / django-autofixture

Can create auto-generated test data.
BSD 3-Clause "New" or "Revised" License
459 stars 117 forks source link

Allow muting signals in a way similar to factoryboy #109

Open oliveratutexas opened 6 years ago

oliveratutexas commented 6 years ago

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 commented 6 years ago

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.