X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=t%2Fmoe%2Fexts%2Fdummy.py;h=3ec5816565644b6a8f6c053f61875d5e58c93fa2;hb=68ef17dd956952f2a559bf9250628aa366884521;hp=7a070a25f52712c4df5aff8e04d907603c5feda5;hpb=5ad8b4f69ab4fdf4d75f5a56fc72ef2988f1da1f;p=moe.git diff --git a/t/moe/exts/dummy.py b/t/moe/exts/dummy.py index 7a070a2..3ec5816 100644 --- a/t/moe/exts/dummy.py +++ b/t/moe/exts/dummy.py @@ -7,16 +7,19 @@ Adds several info-printing hooks to both pipelines. def init(e): - def hook_m_0(self): + def hook_m_0(e): e.log.info('Hey! It\'s me, the dummy extension in your main pipeline! (at time 0)') + e.main_pipe.insert(0, 'exts.dummy.hook_m_0', hook_m_0) - def hook_m_79(self): + def hook_m_79(e): e.log.info('Me, the dummy extension, requies no cleanup! (at time 79)') + e.main_pipe.insert(79, 'exts.dummy.hook_m_79', hook_m_79) - def hook_t_42(self): + def hook_t_42(e): t = 'It\'s test %s and the dummy extension did nothing! (at time 42)' % e['TEST'] e.log.info(t) e.log.user.info(t) + e.test_pipe.insert(42, 'exts.dummy.hook_t_42', hook_t_42)