Prechádzať zdrojové kódy

Written a test that reproduces exception

The exception is thrown when

    $ supervisorctl

is executed in the terminal. This exception was the reason I withdrew
the pull request https://github.com/Supervisor/supervisor/pull/71.
Jens Rantil 13 rokov pred
rodič
commit
b62c2273fe
1 zmenil súbory, kde vykonal 7 pridanie a 0 odobranie
  1. 7 0
      supervisor/tests/test_supervisorctl.py

+ 7 - 0
supervisor/tests/test_supervisorctl.py

@@ -158,6 +158,13 @@ class ControllerTests(unittest.TestCase):
         expected = options.getServerProxy().system
         self.assertEqual(proxy, expected)
 
+    def test_real_controller_initialization(self):
+        from supervisor.options import ClientOptions
+        args = [] # simulating starting without parameters
+        options = ClientOptions()
+        options.realize(args, doc=__doc__)
+        c = self._makeOne(options)
+
 
 class TestControllerPluginBase(unittest.TestCase):
     def _getTargetClass(self):