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
{{ message }}
This repository was archived by the owner on Mar 8, 2021. It is now read-only.
The default SQLAlchemy builder (InstallAndSave) commits the session on each individual fixture.
In some cases, it may be more desirable to allow all fixtures to be instantiated added to the session before committing the entire session. For example, if any semantic error occurs (valid YAML, but invalid for the SQLAlchemy model), the application may wish to roll back all fixture changes rather than commit partial data.
This could be done by adding a autocommit boolean kwarg to the __call__ method that would skip this session commit call.
The default SQLAlchemy builder (
InstallAndSave) commits the session on each individual fixture.In some cases, it may be more desirable to allow all fixtures to be instantiated added to the session before committing the entire session. For example, if any semantic error occurs (valid YAML, but invalid for the SQLAlchemy model), the application may wish to roll back all fixture changes rather than commit partial data.
This could be done by adding a
autocommitboolean kwarg to the__call__method that would skip this session commit call.