def setUp(self): subs.clear_subscriptions() self.cases1 = { 'case1': { 'uid1': ['e1', 'e2', 'e3'], 'uid2': ['e1'] }, 'case2': { 'uid1': ['e2', 'e3'] } } self.cases_overlap = { 'case2': { 'uid3': ['e', 'b', 'c'], 'uid4': ['d'] }, 'case3': { 'uid1': ['a', 'b'] } } self.cases2 = { 'case3': { 'uid3': ['e', 'b', 'c'], 'uid4': ['d'] }, 'case4': { 'uid1': ['a', 'b'] } }
def tearDown(self): case_database.case_db.tear_down() clear_subscriptions() for case in CaseSubscription.query.all(): db.session.delete(case) db.session.commit() if os.path.exists(os.path.join(test_apps_path, 'case.json')): os.remove(os.path.join(test_apps_path, 'case.json'))
def tearDown(self): database.case_db.tear_down() subscription.clear_subscriptions()
def tearDown(self): case_database.case_db.tear_down() clear_subscriptions() for case in CaseSubscription.query.all(): db.session.delete(case) db.session.commit()
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()
def test_clear_subscriptions(self): subs.set_subscriptions(self.cases1) subs.clear_subscriptions() self.assertInMemoryCasesAreCorrect({}) self.assertDatabaseCasesAreCorrect(set())
def tearDown(self): subscription.clear_subscriptions()
def tearDown(self): self.controller.workflows = None case_database.case_db.tear_down() case_subscription.clear_subscriptions() reload(socket)