sqlalchemyseed.pytest_plugin ============================ .. py:module:: sqlalchemyseed.pytest_plugin .. autoapi-nested-parse:: pytest plugin: file-based SQLAlchemy fixtures with per-test rollback. Registered via the ``pytest11`` entry point. Defines fixtures only — importing this module has no side effects, and it is never imported by the package's ``__init__`` so production imports never pull in pytest. Module Contents --------------- .. py:function:: engine() Placeholder the user overrides in their conftest with a real Engine. .. py:function:: seed(sqlalchemyseed_session) Return a callable that seeds a data file into the test session. .. py:function:: sqlalchemyseed_session(engine) A Session in an open transaction that is rolled back after the test.