Skip to content

Commit 5e48d64

Browse files
committed
test(client): Update test for pullpoint_missing_subscription_ref to raise ONVIFOperationException
1 parent 5a36146 commit 5e48d64

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,11 +230,13 @@ def test_service_discovery_failure_handling(self, test_client_params):
230230

231231
def test_pullpoint_missing_subscription_ref(self, mock_onvif_client):
232232
"""Test pullpoint with invalid SubscriptionRef"""
233+
from onvif.utils import ONVIFOperationException
234+
233235
client = mock_onvif_client
234236

235237
invalid_ref = {"invalid": "structure"}
236238

237-
with pytest.raises(RuntimeError, match="SubscriptionReference.Address missing"):
239+
with pytest.raises(ONVIFOperationException):
238240
client.pullpoint(invalid_ref)
239241

240242
def test_xaddr_rewriting_error_handling(self, mock_onvif_client):

0 commit comments

Comments
 (0)