Bläddra i källkod

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 10 år sedan
förälder
incheckning
64d4ec2f55
1 ändrade filer med 2 tillägg och 2 borttagningar
  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