예제 #1
0
def tables_and_data():
    create_tables()
    sample_data()
    yield
    drop_tables()
예제 #2
0
def drop_test_db():
    db_url = DSN.format(**test_config['postgres'])
    engine = create_engine(db_url)
    drop_tables(engine)
예제 #3
0
def sample_data_fixture():
    create_tables()
    sample = sample_data()
    yield sample
    drop_tables()