def setUp(self): self.client = MyTestClient() # Hacky: Need to figure out a way around this... try: from pymongo import MongoClient db = MongoClient()['store'] db.test_store_1.drop() db.permissions.remove({"name": "test_store_1"}) except Exception: pass try: import redis storedb = redis.Redis(host="localhost", db=0) storedb.flushdb() except Exception: pass
def setUp(self): self.client = MyTestClient() self.client.post(newt_base_url + "/auth", data=login)
def setUp(self): self.client = MyTestClient()