]> mj.ucw.cz Git - moe.git/blob - t/moe/tasktypes/dummy.py
Tests for status, status.py fixes, minor changes
[moe.git] / t / moe / tasktypes / dummy.py
1 """
2
3 Dummy task type.
4
5 Adds several info-printing hooks to both pipelines.
6 Runs the test pipeline for each TEST
7 """
8
9 import moe.config
10 import moe.testutils
11
12 def init(e):
13       
14     def hook_m_50(e):
15         e.log.info('Here should be compiling')
16
17     e.main_pipe.insert(50, hook_m_50)
18     
19     e.main_pipe.insert(60, moe.testutils.hook_run_tests, desc='Run testcases') 
20     
21     def hook_t_30(e):
22         e.log.info("Maybe we should do something? Nah...")
23     
24     e.test_pipe.insert(30, hook_t_30)