Beispiel #1
0
def test_add_comments_to_configuration_sequence_of_maps_without_description_does_not_raise(
):
    config = module.yaml.comments.CommentedSeq(
        [module.yaml.comments.CommentedMap([('foo', 'yo')])])
    schema = {'seq': [{'map': {'foo': {}}}]}

    module.add_comments_to_configuration_sequence(config, schema)
Beispiel #2
0
def test_add_comments_to_configuration_sequence_of_strings_does_not_raise():
    config = module.yaml.comments.CommentedSeq(['foo', 'bar'])
    schema = {'seq': [{'type': 'str'}]}

    module.add_comments_to_configuration_sequence(config, schema)