浏览代码

Added get_state() to DummySupervisor.

Chris McDonough 17 年之前
父节点
当前提交
9431c2d269
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/supervisor/tests/base.py

+ 3 - 0
src/supervisor/tests/base.py

@@ -283,6 +283,9 @@ class DummySupervisor:
         else:
             self.process_groups = process_groups
 
+    def get_state(self):
+        return self.options.mood
+
 class DummyProcess:
     # Initial state; overridden by instance variables
     pid = 0 # Subprocess pid; 0 when not running