X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=t%2Fmoe%2Ftasktypes%2Fdummy.py;h=c8b7c73b232b9b70cfc34f99e16a5283a470c13f;hb=68ef17dd956952f2a559bf9250628aa366884521;hp=20e358414b9e1fe7c5492b7ec21c8a235006a77f;hpb=30058c43d5963b139c91800a51705917020722ae;p=eval.git diff --git a/t/moe/tasktypes/dummy.py b/t/moe/tasktypes/dummy.py index 20e3584..c8b7c73 100644 --- a/t/moe/tasktypes/dummy.py +++ b/t/moe/tasktypes/dummy.py @@ -8,12 +8,12 @@ Runs the test pipeline for each TEST def init(e): - def hook_m_50(self): + def hook_m_50(e): e.log.info('Here should be compiling') - e.main_pipe.insert(hook_m_50, 'dummy tasktype hook_m_50', 50) + e.main_pipe.insert(50, 'dummy tasktype hook_m_50', hook_m_50) - def hook_m_60(self): + def hook_m_60(e): e.log.info('Here should be test pipeline running') tests = e['TESTS'].split() for t in tests: @@ -27,9 +27,9 @@ def init(e): e.test_pipeline.run() testvar.remove_operation(op) - e.main_pipe.insert(hook_m_60, 'dummy tasktype hook_m_60', 60) + e.main_pipe.insert(60, 'dummy tasktype hook_m_60', hook_m_60) - def hook_t_30(self): + def hook_t_30(e): e.log.info("Maybe we should do something? Nah...") - e.test_pipe.insert(hook_t_30, 'dummy tasktype hook_t_30', 30) + e.test_pipe.insert(30, 'dummy tasktype hook_t_30', hook_t_30)