[tests] Add (partial) decorator tests

This commit is contained in:
Tobias Witek 2020-02-24 14:20:54 +01:00
parent 0a266b607e
commit 37e1deaa6f
2 changed files with 40 additions and 1 deletions

View file

@ -17,7 +17,7 @@ def scrollable(func):
direction = widget.get('scrolling.direction', 'right')
start += scroll_speed if direction == 'right' else -(scroll_speed)
if width + start > len(text) + (scroll_speed -1):
if width + start > len(text) + (scroll_speed - 1):
if bounce:
widget.set('scrolling.direction', 'left')
else: