예제 #1
0
 def setUp(self):
     """ Initialize the Cloudant database """
     Wishlist.init_db("test")
     Wishlist.remove_all()
예제 #2
0
	def setUp(self):
		# TestWishlists.throttle_api()
		Wishlist.init_db("test")
		# TestWishlists.throttle_api()
		Wishlist.remove_all()
		sleep(0.25)
예제 #3
0
def wishlists_reset():
    """ Removes all wishlists from the database """
    Wishlist.remove_all()
    return make_response('', status.HTTP_204_NO_CONTENT)
예제 #4
0
 def tearDown(self):
     """ Runs after each test """
     # TestWishlistServer.throttle_api()
     Wishlist.remove_all()
     sleep(0.5)
예제 #5
0
파일: server.py 프로젝트: rudi116/wishlists
def data_reset():
    """ Removes all Wishlists from the database """
    Wishlist.remove_all()