Skip to content

Commit

Permalink
Adding minor tests to test_regtap.
Browse files Browse the repository at this point in the history
(in an attempt to tackle #425).
  • Loading branch information
msdemlei committed Feb 22, 2023
1 parent f10aff5 commit bdbe4b2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pyvo/registry/tests/test_regtap.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,10 @@ def test_interface_without_role(self):
resource.get_service('tap')
assert (str(excinfo.value) == "No matching interface.")

def test_non_standard_interface(self):
intf = regtap.Interface("http://url", "", "", "")
assert intf.supports("ivo://ivoa.net/std/sia") == False


class _FakeResult:
"""A fake class just sufficient for giving dal.query.Record enough
Expand Down Expand Up @@ -602,6 +606,9 @@ def test_select_single_matching_service(self):
})

assert (rsc.service._baseurl == "http://b")
# this makes sure caching the service obtained doesn't break
# things
assert (rsc.service._baseurl == "http://b")

def test_capless(self):
rsc = _makeRegistryRecord({})
Expand Down

0 comments on commit bdbe4b2

Please sign in to comment.