Skip to content

Commit 83cab26

Browse files
committed
Fix epics tests
1 parent dbe58fb commit 83cab26

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

tests/backends/epics/test_gui.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
LED,
33
ButtonPanel,
44
ComboBox,
5+
Group,
56
SignalR,
67
SignalRW,
78
SignalW,
89
SignalX,
10+
SubScreen,
911
TextFormat,
1012
TextRead,
1113
TextWrite,
@@ -30,6 +32,28 @@ def test_get_components(mapping):
3032

3133
components = gui.extract_mapping_components(mapping.get_controller_mappings()[0])
3234
assert components == [
35+
Group(
36+
name="SubController01",
37+
layout=SubScreen(labelled=True),
38+
children=[
39+
SignalR(
40+
name="ReadInt",
41+
read_pv="DEVICE:SubController01:ReadInt",
42+
read_widget=TextRead(),
43+
)
44+
],
45+
),
46+
Group(
47+
name="SubController02",
48+
layout=SubScreen(labelled=True),
49+
children=[
50+
SignalR(
51+
name="ReadInt",
52+
read_pv="DEVICE:SubController01:ReadInt",
53+
read_widget=TextRead(),
54+
)
55+
],
56+
),
3357
SignalR(name="BigEnum", read_pv="DEVICE:BigEnum", read_widget=TextRead()),
3458
SignalR(name="ReadBool", read_pv="DEVICE:ReadBool", read_widget=LED()),
3559
SignalR(

0 commit comments

Comments
 (0)