src/risclog/sqlalchemy/tests/test_fixtures.py
def example_model(test_model_factory):
    """Create a persisted example object in the database."""
    model = test_model_factory('db1')
    db = risclog.sqlalchemy.db.get_database(testing=True)
    db.create_all('db1')
    model.persist()
    transaction.commit()
    return model
Create a persisted example object in the database.
Create a persisted example object in the database.
Create a persisted example object in the database .
def example_model(test_model_factory):
    model = test_model_factory('db1')
    db = risclog.sqlalchemy.db.get_database(testing=True)
    db.create_all('db1')
    model.persist()
    transaction.commit()
    return model
def example_model ( test_model_factory ) : model = test_model_factory ( 'db1' ) db = risclog . sqlalchemy . db . get_database ( testing = True ) db . create_all ( 'db1' ) model . persist ( ) transaction . commit ( ) return model
Create a persisted example object in the database.
Create a persisted example object in the database .
"""Create a persisted example object in the database."""
test_model_factory