Skip to content

Commit 685e998

Browse files
committed
Add test for RedeployManagementFrameworkResponse model
1 parent 6da6691 commit 685e998

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

tests/unit/models/test_models_pro_mdm.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
MdmCommandRequest,
2525
PlayLostModeSoundCommand,
2626
ProvisioningProfileListCommand,
27+
RedeployManagementFrameworkResponse,
2728
RefreshCellularPlansCommand,
2829
RequestMirroringCommand,
2930
RestartDeviceCommand,
@@ -226,3 +227,11 @@ def test_mdm_command_request_parsing_from_dict():
226227
assert len(request.clientData) == 2
227228
assert request.commandData.commandType == "ERASE_DEVICE"
228229
assert request.commandData.pin == "654321"
230+
231+
232+
def test_redeploy_management_framework_response_parsing():
233+
"""Verify the redeploy management framework response parses from the API JSON."""
234+
raw = {"deviceId": "123", "commandUuid": "4eecc1fb-f52d-48c5-9560-c246b23601d3"}
235+
response = RedeployManagementFrameworkResponse.model_validate(raw)
236+
assert response.deviceId == "123"
237+
assert response.commandUuid == "4eecc1fb-f52d-48c5-9560-c246b23601d3"

0 commit comments

Comments
 (0)