Skip to content

Commit

Permalink
test: add missing __init__ files, fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
adhtruong committed Sep 17, 2023
1 parent ad5a267 commit a91c564
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 3 deletions.
Empty file.
Empty file.
6 changes: 3 additions & 3 deletions docs/usage/library_factories/sqlalchemy_factory.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ SQLAlchemyFactory

Basic usage is like other factories

.. literalinclude:: /examples/library_factories/sqlalchemy/test_example_1.py
.. literalinclude:: /examples/library_factories/sqlalchemy_factory/test_example_1.py
:caption: Declaring a factory for a SQLAlchemy model
:language: python

Expand All @@ -12,7 +12,7 @@ Configurations

By default, relationships will not be set. This can be overridden via ``__set_relationships__``.

.. literalinclude:: /examples/library_factories/sqlalchemy/test_example_2.py
.. literalinclude:: /examples/library_factories/sqlalchemy_factory/test_example_2.py
:caption: Setting relationships
:language: python

Expand All @@ -25,7 +25,7 @@ Persistence

A handler is provided to allow persistence. This can be used by setting ``__session__`` attribute on a factory.

.. literalinclude:: /examples/library_factories/sqlalchemy/test_example_3.py
.. literalinclude:: /examples/library_factories/sqlalchemy_factory/test_example_3.py
:caption: Using persistence
:language: python

Expand Down

0 comments on commit a91c564

Please sign in to comment.