Skip to content

Commit

Permalink
Trying to flush session before execute in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Digant C Kasundra committed May 13, 2015
1 parent c890662 commit 7076f74
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/model_tests/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def fin():

@pytest.fixture
def sample_data1(session):
session.flush()
sql_file = open('tests/sample_data/sample_data1.sql')
sql = sql_file.read()
for statement in sql.split(";"):
Expand Down

0 comments on commit 7076f74

Please sign in to comment.