示例#1
0
 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()
示例#2
0
 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())
示例#3
0
 def test_init(self):
     repo_tasks.init()
示例#4
0
 def test_init(self):
     repo_tasks.init()