示例#1
0
 def tearDown(self):
     CouchDBTestCase.tearDown(self)
     TestCaseWithServer.tearDown(self)
     # delete remote database
     db = CouchDatabase.open_database(urljoin(self._couch_url, 'shared'),
                                      create=True,
                                      ensure_ddocs=True)
     db.delete_database()
示例#2
0
 def tearDown(self):
     # delete remote database
     db = CouchDatabase.open_database(
         urljoin(self._couch_url, 'shared'),
         create=True,
         ensure_ddocs=True)
     db.delete_database()
     CouchDBTestCase.tearDown(self)
     TestCaseWithServer.tearDown(self)
示例#3
0
文件: util.py 项目: fbernitt/soledad
 def tearDown(self):
     BaseSoledadTest.tearDown(self)
     CouchDBTestCase.tearDown(self)
     main_test_class = getattr(self, 'main_test_class', None)
     if main_test_class is not None:
         main_test_class.tearDown(self)
     # delete the test database
     try:
         db = CouchDatabase(self._couch_url, 'test')
         db.delete_database()
     except DatabaseDoesNotExist:
         pass
示例#4
0
 def tearDown(self):
     BaseSoledadTest.tearDown(self)
     CouchDBTestCase.tearDown(self)
     main_test_class = getattr(self, 'main_test_class', None)
     if main_test_class is not None:
         main_test_class.tearDown(self)
     # delete the test database
     try:
         db = CouchDatabase(self._couch_url, 'test')
         db.delete_database()
     except DatabaseDoesNotExist:
         pass
示例#5
0
 def tearDown(self):
     CouchDBTestCase.tearDown(self)
     TestCaseWithServer.tearDown(self)
示例#6
0
 def tearDown(self):
     CouchDBTestCase.tearDown(self)
     TestCaseWithServer.tearDown(self)
 def tearDown(self):
     self.db.delete_database()
     self.db.close()
     CouchDBTestCase.tearDown(self)
     TestCaseWithServer.tearDown(self)
示例#8
0
 def tearDown(self):
     self.db.delete_database()
     self.db.close()
     CouchDBTestCase.tearDown(self)
     TestCaseWithServer.tearDown(self)
示例#9
0
 def tearDown(self):
     CouchDBTestCase.tearDown(self)
     TestCaseWithServer.tearDown(self)
     shutil.rmtree(self.tempdir)
示例#10
0
 def tearDown(self):
     CouchDBTestCase.tearDown(self)
     TestCaseWithServer.tearDown(self)
     shutil.rmtree(self.tempdir)