Skip to content

Commit

Permalink
Merge pull request #92 from jseabold/fix-integration-tests
Browse files Browse the repository at this point in the history
Fix integration tests.
  • Loading branch information
graingert committed Aug 24, 2016
2 parents 471ce46 + 6a04627 commit 7691341
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/test_postfetch_lastrowid.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@

def test_postfetch_lastrowid(redshift_session):
session = redshift_session
for i in range(5):
postfetchExample = models.PostfetchExample(some_int=i)
session.add(postfetchExample)
examples = [models.PostfetchExample(some_int=i) for i in range(5)]
session.add_all(examples)
session.flush()
assert postfetchExample.id == 4
assert sorted(pfe.id for pfe in examples) == [0, 1, 2, 3, 4]

0 comments on commit 7691341

Please sign in to comment.