Browse Source

Added get_state() to DummySupervisor.

Chris McDonough 17 năm trước cách đây
mục cha
commit
9431c2d269
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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