def test_validate_yaml(self): """ Test YAML file validation """ self.do_test([env.input_path('yaml_validate_clean.yaml'), '-v'], 'clean.txt', add_yaml=False) with self.assertRaises(ValueError) as e: self.do_test([env.input_path('yaml_validate_invalid.yaml'), '-v'], 'invalid.txt', add_yaml=False) self.assertIn('slot: k - unrecognized range (none)', str(e.exception))
def test_slot_class_uri(self): self.do_test(env.input_path('uri_tests.yaml'), 'uri_tests.jsonld', filtr=ldcontext_metadata_filter, add_yaml=False)
def test_tree_root_args(self): self.do_test([env.input_path('roottest.yaml'), '-t', 'c2'], 'rootttest2.jsonld', add_yaml=False)
def test_tree_root(self): self.do_test([env.input_path('roottest.yaml')], 'rootttest.jsonld', add_yaml=False)