Added test

This commit is contained in:
Andrew Murray 2022-02-12 09:07:17 +11:00
parent e19447cbbb
commit 3ba9587675

View File

@ -51,6 +51,16 @@ def test_show():
assert ImageShow.show(im)
def test_show_without_viewers():
viewers = ImageShow._viewers
ImageShow._viewers = []
im = hopper()
assert not ImageShow.show(im)
ImageShow._viewers = viewers
def test_viewer():
viewer = ImageShow.Viewer()