Example #1
0
 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)
Example #3
0
def wishlists_reset():
    """ Removes all wishlists from the database """
    Wishlist.remove_all()
    return make_response('', status.HTTP_204_NO_CONTENT)
Example #4
0
 def tearDown(self):
     """ Runs after each test """
     # TestWishlistServer.throttle_api()
     Wishlist.remove_all()
     sleep(0.5)
Example #5
0
def data_reset():
    """ Removes all Wishlists from the database """
    Wishlist.remove_all()