def main(output_folder): config = read_config() client = WebClient() store = LocalStore(config["store"]["path"]) task = GetIntensiveCareDataset(config["collector"], client, store) task(output_folder=output_folder)
def test_read_config_without_path(self, mock_open): mock_open.side_effect = [ mock.mock_open(read_data=yaml.dump(self.config)).return_value ] config = read_config() mock_open.assert_called_once_with("env/test/config.yaml", "r", encoding="utf8") assert config == self.config
def main(name, input_folder, output_folder): config = read_config() store = LocalStore(config["store"]["path"]) task = MergeIntensiveCareDataset(config["collector"], store) task(name=name, input_folder=input_folder, output_folder=output_folder)
def main(input_folder, output_folder): config = read_config() store = LocalStore(config["store"]["path"]) task = CleanNationalDataset(config["collector"], store) task(input_folder=input_folder, output_folder=output_folder)