Skip to content

Commit

Permalink
add test approvals
Browse files Browse the repository at this point in the history
  • Loading branch information
time4tea committed Feb 10, 2024
1 parent f1c871b commit 098c165
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 17 additions & 1 deletion tests/widgets/test_widgets_msi.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from gopro_overlay.dimensions import Dimension
from gopro_overlay.point import Coordinate
from gopro_overlay.widgets.asi import AirspeedIndicator
from gopro_overlay.widgets.msi import MotorspeedIndicator
from gopro_overlay.widgets.msi import MotorspeedIndicator, MotorspeedIndicator2
from gopro_overlay.widgets.widgets import Translate
from tests.widgets import test_widgets_setup
from tests.approval import approve_image
Expand All @@ -30,6 +30,22 @@ def test_gauge():
)


@pytest.mark.gfx
@approve_image
def test_gauge_msi_2():
size = 256
return time_rendering(
name="test_gauge",
dimensions=Dimension(size, size),
widgets=[
MotorspeedIndicator2(
size=size, font=font, green=40, yellow=46, end=200,
reading=lambda: 125
)
]
)


@pytest.mark.gfx
@approve_image
def test_gauge_rotate_90():
Expand Down

0 comments on commit 098c165

Please sign in to comment.