Skip to content

Commit

Permalink
TST: unrelated test fix, rebase should resolve it
Browse files Browse the repository at this point in the history
  • Loading branch information
bsipocz committed Oct 9, 2024
1 parent fead6bc commit e676bee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pyvo/registry/tests/test_regtap.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ def keywordstest_callback(request, context):
data = dict(parse_qsl(request.body))
query = data['QUERY']

assert (" UNION SELECT ivoid FROM rr.res_subject WHERE"
" rr.res_subject.res_subject ILIKE '%single%'") in query
assert (" UNION ALL SELECT DISTINCT ivoid FROM rr.res_subject WHERE "
"rr.res_subject.res_subject ILIKE '%single%'") in query
assert "1=ivo_hasword(res_description, 'single') " in query
assert "1=ivo_hasword(res_title, 'single')" in query

Expand Down
5 changes: 3 additions & 2 deletions pyvo/registry/tests/test_rtcons.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,9 @@ def test_moc(self):

def test_moc_and_inclusive(self):
cons = registry.Spatial("0/1-3 3/", inclusive=True)
assert cons.get_search_condition(FAKE_GAVO) == \
"ivoid IN (SELECT DISTINCT ivoid FROM rr.stc_spatial WHERE 1 = CONTAINS(MOC('0/1-3 3/'), coverage)) OR coverage IS NULL"
assert cons.get_search_condition(FAKE_GAVO) == (
"ivoid IN (SELECT DISTINCT ivoid FROM rr.stc_spatial WHERE 1 = "
"CONTAINS(MOC('0/1-3 3/'), coverage) OR coverage IS NULL)")

def test_SkyCoord(self):
cons = registry.Spatial(SkyCoord(3 * u.deg, -30 * u.deg))
Expand Down

0 comments on commit e676bee

Please sign in to comment.