Skip to content

Instantly share code, notes, and snippets.

@synic
Created September 17, 2016 16:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save synic/64e4835043765a1d6222c06d9c25f882 to your computer and use it in GitHub Desktop.
Save synic/64e4835043765a1d6222c06d9c25f882 to your computer and use it in GitHub Desktop.
def test_stuff():
reservation = factory.ReservationFactory.create()
db.session.commit()
#... run PUT request
# refresh the reservation so we can test that the PUT did it's thing
db.session.refresh(reservation)
self.assertEquals(reservation.title, ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment