def setUp(self): """ Initialize the Cloudant database """ Wishlist.init_db("test") Wishlist.remove_all()
def setUp(self): # TestWishlists.throttle_api() Wishlist.init_db("test") # TestWishlists.throttle_api() Wishlist.remove_all() sleep(0.25)
def wishlists_reset(): """ Removes all wishlists from the database """ Wishlist.remove_all() return make_response('', status.HTTP_204_NO_CONTENT)
def tearDown(self): """ Runs after each test """ # TestWishlistServer.throttle_api() Wishlist.remove_all() sleep(0.5)
def data_reset(): """ Removes all Wishlists from the database """ Wishlist.remove_all()