コード例 #1
0
ファイル: tests.py プロジェクト: JiangLiNSCC/eHPC
 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
コード例 #2
0
 def setUp(self):
     self.client = MyTestClient()
     self.client.post(newt_base_url + "/auth", data=login)
コード例 #3
0
 def setUp(self):
     self.client = MyTestClient()