def test_init(self): ns = M.Notification.query.find().count() with mock.patch.object(c.app.repo, "init") as f: repo_tasks.init() M.main_orm_session.flush() assert f.called_with() assert ns + 1 == M.Notification.query.find().count()
def test_init(self): ns = M.Notification.query.find().count() with mock.patch.object(c.app.repo, 'init') as f: repo_tasks.init() M.main_orm_session.flush() assert f.called_with() assert_equal(ns, M.Notification.query.find().count())
def test_init(self): repo_tasks.init()