瀏覽代碼

Making sure that a test never finds a config file.

The intention of the test is that it is not supposed to find a config
file anywhere on-disc. My local workstation does not have one, but
future testers might.
Jens Rantil 13 年之前
父節點
當前提交
43e35253ad
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      supervisor/tests/test_supervisorctl.py

+ 5 - 0
supervisor/tests/test_supervisorctl.py

@@ -162,6 +162,11 @@ class ControllerTests(unittest.TestCase):
         from supervisor.options import ClientOptions
         args = [] # simulating starting without parameters
         options = ClientOptions()
+
+        # No default config file search in case they would exist
+        self.assertTrue(len(options.searchpaths) > 0)
+        options.searchpaths = []
+
         options.realize(args, doc=__doc__)
         c = self._makeOne(options)