update test_read_metadata to use ruamel.yaml and YAML 1.2

I tried to get this to indent the .yaml files properly so yamllint defaults
work with tests/metadata/dump/*.yaml, but it didn't take for some reason:

    yaml.indent(mapping=4, sequence=4, offset=2)
This commit is contained in:
Hans-Christoph Steiner 2023-05-02 10:59:53 +02:00
parent 28ea6cea7f
commit 9a9705a667
6 changed files with 53 additions and 50 deletions

View file

@ -297,6 +297,10 @@ class Build(dict):
else:
raise AttributeError("No such attribute: " + name)
@classmethod
def to_yaml(cls, representer, node):
return representer.represent_dict(node)
def build_method(self):
for f in ['maven', 'gradle']:
if self.get(f):