Пример #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()