예제 #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()