use alternative for all falsey values in format strings

… and not just None (#525)

It would be better to consistently use None for all non-existent
fields and/or fields without a valid value, but this is a good
enough workaround for now.
This commit is contained in:
Mike Fährmann
2020-09-19 22:02:47 +02:00
parent c43b3894be
commit 65744a7a31
2 changed files with 2 additions and 2 deletions

View File

@@ -339,7 +339,7 @@ class TestFormatter(unittest.TestCase):
self._run_test("{z|a!C:RH/C/}", "Cello World")
self._run_test("{z|y|x:?</>/}", "")
self._run_test("{d[c]|d[b]|d[a]}", "0")
self._run_test("{d[c]|d[b]|d[a]}", "foo")
self._run_test("{d[a]|d[b]|d[c]}", "foo")
self._run_test("{d[z]|d[y]|d[x]}", "None")