Skip to content

Commit 0c8e4bb

Browse files
committed
Fix test failing with urwid >= 4.2.5
Previously, a leading zero was cropped for focused field, and tests even asserted this. Check the rendered value for a non-focused field, which does not diverge across versions
1 parent 7fcd099 commit 0c8e4bb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎tests/ui/test_editor.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ def test_convert_to_date():
103103
BERLIN.localize(dt.datetime(2017, 10, 4, 18)),
104104
conf=CONF,
105105
)
106-
canvas = editor.render((50,), True)
106+
canvas = editor.render((50,), False)
107107
assert CanvasTranslator(canvas, palette).transform() == (
108-
"[ ] Allday\nFrom: \x1b[31m2.10.2017 \x1b[0m \x1b[34m13:00 \x1b[0m\n"
108+
"[ ] Allday\nFrom: \x1b[34m02.10.2017\x1b[0m \x1b[34m13:00 \x1b[0m\n"
109109
"To: \x1b[34m04.10.2017\x1b[0m \x1b[34m18:00 \x1b[0m\n"
110110
)
111111

0 commit comments

Comments
 (0)