mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-23 14:58:09 +00:00
e073e619c9
isort set to skip the first necessary "from common import *" line. A better solution would be to get rid of the need of this import in the future. [no changelog]
30 lines
550 B
Python
30 lines
550 B
Python
from common import * # isort:skip
|
|
|
|
from trezor.ui import display
|
|
|
|
|
|
class TestDisplay(unittest.TestCase):
|
|
def test_refresh(self):
|
|
display.refresh()
|
|
|
|
def test_bar(self):
|
|
display.bar(0, 0, 10, 10, 0xFFFF)
|
|
|
|
def test_orientation(self):
|
|
for o in [0, 90, 180, 270]:
|
|
display.orientation(o)
|
|
|
|
def test_backlight(self):
|
|
for b in range(256):
|
|
display.backlight(b)
|
|
|
|
def test_raw(self):
|
|
pass
|
|
|
|
def test_save(self):
|
|
pass
|
|
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main()
|