예제 #1
0
 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))
예제 #2
0
 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)
예제 #3
0
 def test_tree_root_args(self):
     self.do_test([env.input_path('roottest.yaml'), '-t', 'c2'],
                  'rootttest2.jsonld',
                  add_yaml=False)
예제 #4
0
 def test_tree_root(self):
     self.do_test([env.input_path('roottest.yaml')],
                  'rootttest.jsonld',
                  add_yaml=False)