Skip to content

Commit c5963ad

Browse files
committed
Update canvas image test and golden file
Changed the test image source in test_draw_url_image to a new URL and updated the canvas dimensions. The corresponding golden image was also updated to reflect these changes.
1 parent b9e2a72 commit c5963ad

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed
5.75 KB
Loading

sdk/python/packages/flet/integration_tests/controls/test_canvas.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -667,9 +667,15 @@ async def test_draw_url_image(flet_app: ftt.FletTestApp, request):
667667
await flet_app.assert_control_screenshot(
668668
request.node.name,
669669
fc.Canvas(
670-
[fc.Image(src="https://picsum.photos/id/237/100/100", x=10, y=10)],
671-
width=120,
672-
height=120,
670+
[
671+
fc.Image(
672+
src="https://raw.githubusercontent.com/flet-dev/media/refs/heads/main/pictures/minion.png",
673+
x=10,
674+
y=10,
675+
)
676+
],
677+
width=150,
678+
height=150,
673679
),
674680
pump_times=7,
675681
pump_duration=1000,

0 commit comments

Comments
 (0)