Explorar o 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 %!s(int64=10) %!d(string=hai) anos
pai
achega
64d4ec2f55
Modificáronse 1 ficheiros con 2 adicións e 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