[postprocessor:metadata] assume 'mode: custom' when format is set

{"name": "metadata", "format": "foobar"}
will now implicitly use mode:custom and no longer mode:json like before
This commit is contained in:
Mike Fährmann
2022-10-04 17:53:04 +02:00
parent f0321f423d
commit b57015cf0a
2 changed files with 9 additions and 8 deletions

View File

@@ -267,6 +267,7 @@ class MetadataTest(BasePostprocessorTest):
test({"mode": "custom", "content-format": "{foo}\n{missing}\n"})
test({"mode": "custom", "content-format": ["{foo}", "{missing}"]})
test({"mode": "custom", "format": "{foo}\n{missing}\n"})
test({"format": "{foo}\n{missing}\n"})
def test_metadata_extfmt(self):
pp = self._create({