From 9bfd2ad3d15a94cabb2e0d8bd43dcb4f0219fa5c Mon Sep 17 00:00:00 2001 From: Pawel Snoch Date: Tue, 7 Oct 2025 09:04:55 +0200 Subject: [PATCH] Add test get not supported service --- test/integration/models/monitor/test_monitor.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/integration/models/monitor/test_monitor.py b/test/integration/models/monitor/test_monitor.py index 7c9249f42..b458fd399 100644 --- a/test/integration/models/monitor/test_monitor.py +++ b/test/integration/models/monitor/test_monitor.py @@ -55,6 +55,13 @@ def test_get_supported_services(test_linode_client): assert isinstance(metric_definitions[0], MonitorMetricsDefinition) +def test_get_not_supported_service(test_linode_client): + client = test_linode_client + with pytest.raises(RuntimeError) as err: + client.load(MonitorService, "saas") + assert "[404] Not found" in str(err.value) + + # Test Helpers def get_db_engine_id(client: LinodeClient, engine: str): engines = client.database.engines()