From 80dec7a09cd6744aa90fd55b0f1d3cfde61316c3 Mon Sep 17 00:00:00 2001 From: Niko Strijbol Date: Fri, 25 Aug 2023 13:31:32 +0200 Subject: [PATCH] Also support !value --- tested/dsl/translate_parser.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tested/dsl/translate_parser.py b/tested/dsl/translate_parser.py index 6b019ef8..e244a356 100644 --- a/tested/dsl/translate_parser.py +++ b/tested/dsl/translate_parser.py @@ -121,6 +121,7 @@ def _parse_yaml(yaml_stream: Union[str, TextIO]) -> YamlObject: for actual_type in types: yaml.add_constructor("!" + actual_type, _custom_type_constructors, loader) yaml.add_constructor("!v", _yaml_value_constructor, loader) + yaml.add_constructor("!value", _yaml_value_constructor, loader) return yaml.load(yaml_stream, loader)