X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=tests%2Ftest_config.py;h=36ba2accf0bf9d5da101acfd1cb6b40f439720fe;hb=24bfc0a6fceb390f4b967be0b83d412dcad44ca5;hp=99a89f8964918784a7abdbc4735d50f6605391a1;hpb=6e0cb104973681f2344de9c5ae4f04c62686401b;p=mpd-sima.git diff --git a/tests/test_config.py b/tests/test_config.py index 99a89f8..36ba2ac 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -15,7 +15,8 @@ class TestConfMan(unittest.TestCase): @patch('sima.utils.config.makedirs') @patch('sima.utils.config.chmod') - def test_XDG_var(self, mock_makedirs, mock_chmod): + @patch('sima.utils.config.ConfMan.control_facc') + def test_XDG_var(self, *args): config_home = '/foo/bar' os.environ['XDG_CONFIG_HOME'] = config_home conf_file = os.path.join(config_home, DIRNAME, CONF_FILE) @@ -28,7 +29,8 @@ class TestConfMan(unittest.TestCase): self.assertEqual(conf.config['sima']['var_dir'], var_dir) @patch('sima.utils.config.isdir') - def test_default_locations(self, mock_isdir): + @patch('sima.utils.config.ConfMan.control_facc') + def test_default_locations(self, mock_isdir, *args): home = '/foo' mock_isdir.return_value = True os.environ.pop('XDG_CONFIG_HOME', None)