Explorar o código

Added get_state() to DummySupervisor.

Chris McDonough %!s(int64=17) %!d(string=hai) anos
pai
achega
9431c2d269
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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