mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-12 10:10:30 +03:00
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:
parent
28ea6cea7f
commit
9a9705a667
6 changed files with 53 additions and 50 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue