From e60741bb0fcffcfa299813938ccb53d395f6f2ac Mon Sep 17 00:00:00 2001 From: Stelios Voutsinas Date: Mon, 27 Jan 2025 15:09:27 -0700 Subject: [PATCH] Remove test_tap_service_invalid_url_error test case --- pyvo/dal/tests/test_tap.py | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/pyvo/dal/tests/test_tap.py b/pyvo/dal/tests/test_tap.py index 076edf91..c9e76046 100644 --- a/pyvo/dal/tests/test_tap.py +++ b/pyvo/dal/tests/test_tap.py @@ -793,17 +793,6 @@ def test_get_udf(self, tapservice): assert func.form == "ivo_hasword(haystack TEXT, needle TEXT) -> INTEGER" -def test_invalid_service_url_format(): - service = TAPService('http://[invalid-url') - - with pytest.raises(DALServiceError) as excinfo: - _ = service.capabilities - - error_message = str(excinfo.value) - assert "Invalid service URL" in error_message - assert "Please provide a valid URL in the format 'http(s)://domain/path'" in error_message - - def test_timeout_error(): service = TAPService('http://example.com/tap') @@ -895,16 +884,6 @@ def test_tap_service_initialization_error(): assert "404" in error_message -def test_tap_service_invalid_url_error(): - service = TAPService('http://[invalid-url') - with pytest.raises(DALServiceError) as excinfo: - _ = service.capabilities - - error_message = str(excinfo.value) - assert "Invalid service URL" in error_message - assert "Please provide a valid URL in the format 'http(s)://domain/path'" in error_message - - def test_endpoint_connection_errors(): service = TAPService('http://example.com/tap')