fix: show stale marker on the empty board
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
1 parent
baaaeff917
commit
410eb82a02
2 files changed
+8
No files matched your search
@@ -63,6 +63,12 @@ def test_empty_board_shows_message_not_badge(fonts):
|
||||
assert img.tobytes() != blank.tobytes() # the "Žádné odjezdy" text was drawn
|
||||
|
||||
|
||||
def test_empty_board_stale_marker_appears(fonts):
|
||||
fresh = board.render_board([], NOW, fonts, stale=False).tobytes()
|
||||
stale = board.render_board([], NOW, fonts, stale=True).tobytes()
|
||||
assert fresh != stale
|
||||
|
||||
|
||||
def test_single_departure_and_overflow_do_not_crash(fonts):
|
||||
assert board.render_board(FIVE[:1], NOW, fonts).size == (480, 320)
|
||||
many = FIVE * 3 # more than the board can show
|
||||
|
||||
Reference in new issue
Block a user