mirror of
https://github.com/bec-project/bec_widgets.git
synced 2026-11-03 09:05:53 +01:00
test(device config): validate against pydantic
This commit is contained in:
1 parent
2b75d5600a
commit
de8fe3b5f5
1 file changed
+7
-13
@@ -129,19 +129,13 @@ def test_update_cycle(update_dialog, qtbot):
|
||||
({"readOnly": True, "description": "test"}, {"readOnly": True, "description": "test"}),
|
||||
(
|
||||
{"deviceConfig": {"param1": "'val1'"}},
|
||||
{
|
||||
"enabled": True,
|
||||
"deviceClass": "TestDevice",
|
||||
"deviceConfig": {"param1": "val1"},
|
||||
"readoutPriority": "monitored",
|
||||
"description": "",
|
||||
"readOnly": False,
|
||||
"softwareTrigger": False,
|
||||
"onFailure": "retry",
|
||||
"deviceTags": set(),
|
||||
"userParameter": {},
|
||||
"name": "test_device",
|
||||
},
|
||||
DeviceConfigModel(
|
||||
enabled=True,
|
||||
deviceClass="TestDevice",
|
||||
deviceConfig={"param1": "val1"},
|
||||
readoutPriority="monitored",
|
||||
name="test_device",
|
||||
).model_dump(),
|
||||
),
|
||||
({"deviceConfig": {}}, {}),
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user