Przeglądaj źródła

Added get_state() to DummySupervisor.

Chris McDonough 17 lat temu
rodzic
commit
9431c2d269
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3 0
      src/supervisor/tests/base.py

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

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