def tables_and_data(): create_tables() sample_data() yield drop_tables()
def drop_test_db(): db_url = DSN.format(**test_config['postgres']) engine = create_engine(db_url) drop_tables(engine)
def sample_data_fixture(): create_tables() sample = sample_data() yield sample drop_tables()