Exemplo n.º 1
0
    def test_does_config_file_exist_false(self):
        paths = {
            CONFIG_FILE_PATH_KEYWORD:
            Path(__file__).joinpath(Path("config.json"))
        }

        data_backend = DataBackend(paths)
        self.assertFalse(data_backend.does_config_file_exist())
Exemplo n.º 2
0
    def test_does_config_file_exist_true(self):
        temp_config = tempfile.mkstemp()[1]
        paths = {CONFIG_FILE_PATH_KEYWORD: temp_config}

        data_backend = DataBackend(paths)
        self.assertTrue(data_backend.does_config_file_exist())