Skip to content

Commit

Permalink
Remove test_tap_service_invalid_url_error test case
Browse files Browse the repository at this point in the history
  • Loading branch information
stvoutsin committed Jan 27, 2025
1 parent d4ffa43 commit e60741b
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions pyvo/dal/tests/test_tap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down Expand Up @@ -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')

Expand Down

0 comments on commit e60741b

Please sign in to comment.