Skip to content

Commit d9c7345

Browse files
committed
Divider tests
1 parent 14c03b0 commit d9c7345

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed
319 Bytes
Loading
754 Bytes
Loading
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import pytest
2+
3+
import flet as ft
4+
import flet.testing as ftt
5+
6+
7+
@pytest.mark.asyncio(loop_scope="module")
8+
async def test_divider_basic(flet_app: ftt.FletTestApp, request):
9+
flet_app.page.theme_mode = ft.ThemeMode.LIGHT
10+
await flet_app.assert_control_screenshot(
11+
request.node.name,
12+
ft.Divider(),
13+
)
14+
15+
16+
@pytest.mark.asyncio(loop_scope="module")
17+
async def test_divider_properties(flet_app: ftt.FletTestApp, request):
18+
flet_app.page.theme_mode = ft.ThemeMode.LIGHT
19+
await flet_app.assert_control_screenshot(
20+
request.node.name,
21+
ft.Divider(
22+
color=ft.Colors.RED,
23+
height=50,
24+
thickness=2,
25+
leading_indent=20,
26+
trailing_indent=20,
27+
),
28+
)

0 commit comments

Comments
 (0)