Exemplo n.º 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()
Exemplo n.º 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())
Exemplo n.º 3
0
 def test_init(self):
     repo_tasks.init()
Exemplo n.º 4
0
 def test_init(self):
     repo_tasks.init()