Explorar el Código

test_no_config_file_exits use realize(args=[])

Also changed test_options_unixsocket_configfile to use this style, as I
noticed that this style is already present in a bunch of places, so
might as well be consistent.
Marc Abramowitz hace 10 años
padre
commit
64d4ec2f55
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      supervisor/tests/test_options.py

+ 2 - 2
supervisor/tests/test_options.py

@@ -397,7 +397,7 @@ class ClientOptionsTests(unittest.TestCase):
         fp = StringIO(s)
         instance = self._makeOne()
         instance.configfile = fp
-        instance.realize(())
+        instance.realize(args=[])
         self.assertEqual(instance.serverurl, 'unix:///dev/null')
 
 class ServerOptionsTests(unittest.TestCase):
@@ -678,7 +678,7 @@ class ServerOptionsTests(unittest.TestCase):
         instance.stderr = StringIO()
 
         try:
-            instance.realize()
+            instance.realize(args=[])
         except DummyExitException as e:
             # Caught expected exception
             import traceback