Skip to content

Commit

Permalink
kraken3: split smoke tests and disable GIF part due to #661
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasmalacofilho committed Jan 11, 2024
1 parent 07541cd commit c50afa4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/test_kraken3.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,13 +539,22 @@ def test_krakenz3_not_totally_broken(mock_krakenz3):
mock_krakenz3.set_speed_profile(channel="fan", profile=iter([(20, 20), (30, 50), (40, 100)]))
mock_krakenz3.set_fixed_speed(channel="pump", duty=50)

# set_screen should be the last set of functions called

def test_krakenz3_screen_not_totally_broken(mock_krakenz3):
"""Reasonable example calls to untested APIs do not raise exceptions."""
mock_krakenz3.initialize()
mock_krakenz3.set_screen("lcd", "liquid", None)
mock_krakenz3.set_screen("lcd", "brightness", "60")
mock_krakenz3.set_screen("lcd", "orientation", "90")
mock_krakenz3.set_screen(
"lcd", "static", os.path.join(os.path.dirname(os.path.abspath(__file__)), "yellow.jpg")
)


@pytest.mark.skip("Currently broken with pillow >= 10.2.0 (see #661)")
def test_krakenz3_screen_not_totally_broken_part2(mock_krakenz3):
"""Reasonable example calls to untested APIs do not raise exceptions."""
mock_krakenz3.initialize()
mock_krakenz3.set_screen(
"lcd", "gif", os.path.join(os.path.dirname(os.path.abspath(__file__)), "rgb.gif")
)

0 comments on commit c50afa4

Please sign in to comment.