def run(self): files = get_resources_dests(".", [('', glob.strip(), '') for glob in self.files.strip().split("\n")]) if self.files else [] for file in files: recode(file, file.replace(".yaml", ".json")) # Reload the configuration, so wildcards in resources will detect json files. self.distribution.parse_config_files()
def assertRulesMatch(self, rules, spec): tempdir = self.build_files_tree(spec) expected = self.clean_tree(spec) result = get_resources_dests(tempdir, rules) self.assertEqual(expected, result)