Пример #1
0
 def tearDown(self):
     subs.clear_subscriptions()
     # db.case_db.session.query(db.Case).delete()
     for case in db.case_db.session.query(db.Case).all():
         db.case_db.session.delete(case)
     db.case_db.session.commit()
Пример #2
0
 def tearDown(self):
     database.case_db.tear_down()
     subscription.clear_subscriptions()
Пример #3
0
 def test_clear_subscriptions(self):
     subs.set_subscriptions(self.cases1)
     subs.clear_subscriptions()
     self.assertInMemoryCasesAreCorrect({})
     self.assertDatabaseCasesAreCorrect(set())
 def tearDown(self):
     self.controller.workflows = None
     case_database.case_db.tear_down()
     case_subscription.clear_subscriptions()
     self.controller.shutdown_pool(0)
     reload(socket)
Пример #5
0
 def tearDown(self):
     subscription.clear_subscriptions()
Пример #6
0
 def tearDown(self):
     clear_subscriptions()
     for case in server.running_context.CaseSubscription.query.all():
         server.running_context.db.session.delete(case)
     server.running_context.db.session.commit()
 def tearDown(self):
     self.c.workflows = None
     case_database.case_db.tear_down()
     case_subscription.clear_subscriptions()