Skip to content

Commit

Permalink
add full coverage for proportional
Browse files Browse the repository at this point in the history
  • Loading branch information
thijstriemstra committed Mar 5, 2017
1 parent b38698d commit e280037
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/test_legacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,5 @@ def test_show_message():
"""
Scroll a message right-to-left across the devices display.
"""
draw = Mock(unsafe=True)
device = dummy()
show_message(device, 'text')
draw.point.assert_not_called()
5 changes: 5 additions & 0 deletions tests/test_proportional.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,8 @@ def test_space_char():
def test_doublequote_char():
font = proportional(CP437_FONT)
assert font[ord('"')] == [7, 7, 0, 7, 7, 0]


def test_trim_not_nonzero():
font = proportional(CP437_FONT)
assert font._trim([0, 0, 0, 0]) == []

0 comments on commit e280037

Please sign in to comment.