You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It'd be nice to be able to expose a fixture (maybe the factory fixture?) that can be invoked in the test invocation.
Here's a few use cases:
creating the object when using a decorator, e.g. factory.django.mute_signals(signals.post_save)
create the object imperatively in the test body, for example if you use @pytest.mark.django_db(transactional=True), and you need to create your object within a django.db.transaction.atomic() context manager.
It'd be nice to be able to expose a fixture (maybe the factory fixture?) that can be invoked in the test invocation.
Here's a few use cases:
factory.django.mute_signals(signals.post_save)
@pytest.mark.django_db(transactional=True)
, and you need to create your object within adjango.db.transaction.atomic()
context manager.The text was updated successfully, but these errors were encountered: