Skip to content

Add TAP endpoint and query behavior tests#13

Merged
juanmcloaiza merged 2 commits into
develop-cataloguesfrom
develop-catalogues-tests
Jun 11, 2026
Merged

Add TAP endpoint and query behavior tests#13
juanmcloaiza merged 2 commits into
develop-cataloguesfrom
develop-catalogues-tests

Conversation

@ashleythomasbarnes

Copy link
Copy Markdown
Collaborator

Add comprehensive tests for TAP endpoint selection and ADQL/query behavior. Tests cover: invalid tap_endpoint names, detection of schema prefixes in TAP_CAT table names, ROW_LIMIT validation, _try_retrieve_pyvo_table error messages and overflow handling, selecting the correct TAP endpoint/session for authenticated and unauthenticated calls, propagation of tap_endpoint through query_tap to the retriever, correct metadata queries for columns_table on tap_obs vs tap_cat (including prefix-stripping), list/help flows using the catalog endpoint, and dry-run get_query_payload behavior for both _query_on_allowed_values and query_catalog. Also import eso.core as eso_core to allow monkeypatching TAPService and add missing pytest import in catalog tests.

Add comprehensive tests for TAP endpoint selection and ADQL/query behavior. Tests cover: invalid tap_endpoint names, detection of schema prefixes in TAP_CAT table names, ROW_LIMIT validation, _try_retrieve_pyvo_table error messages and overflow handling, selecting the correct TAP endpoint/session for authenticated and unauthenticated calls, propagation of tap_endpoint through query_tap to the retriever, correct metadata queries for columns_table on tap_obs vs tap_cat (including prefix-stripping), list/help flows using the catalog endpoint, and dry-run get_query_payload behavior for both _query_on_allowed_values and query_catalog. Also import eso.core as eso_core to allow monkeypatching TAPService and add missing pytest import in catalog tests.
@juanmcloaiza juanmcloaiza merged commit 28f6c63 into develop-catalogues Jun 11, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants