def test_full(self, yaml_ast):
     OperationDefinitionForTemplate.parse(
         yaml_ast("""
         description: Even more text
         implementation: path/to/artifact
         inputs:
           my_input: value
         outputs:
           my_output: [ SELF, attribute_name ]
         """))
 def test_minimal(self, yaml_ast):
     OperationDefinitionForTemplate.parse(yaml_ast("{}"))
    def test_string_normalization(self):
        obj = OperationDefinitionForTemplate.normalize(Node("string"))

        assert obj.bare == {"implementation": "string"}
    def test_dict_normalization(self):
        node = Node({})
        obj = OperationDefinitionForTemplate.normalize(node)

        assert obj == node
 def test_invalid_data(self, data):
     with pytest.raises(ParseError):
         OperationDefinitionForTemplate.normalize(Node(data))