def test_package_loader_default_configs(self):
        """Test configs in etc/packages.yml."""
        with open(PACKAGE_FILE) as f:
            configs = yaml.safe_load(f)['package']

        package = Package.from_config(configs)
        for rule in package.rules:
            rule.contents.pop('version')
            rule.validate(as_rule=True)
Exemple #2
0
 def test_package_loader_default_configs(self):
     """Test configs in etc/packages.yml."""
     Package.from_config(package_configs)