-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #395 from astropy/fix-epntap-discovery
Fixing a query generation for the epn-tap data model.
- Loading branch information
Showing
4 changed files
with
26 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -630,6 +630,23 @@ def test_get_contact(): | |
" <[email protected]>") | ||
|
||
|
||
@pytest.mark.remote_data | ||
class TestDatamodelQueries: | ||
# right now, the data model queries are all rather sui generis, and | ||
# rather fickly on top. Let's make sure they actually return something | ||
# against the live registry. Admittedly, this is about as much | ||
# a test of the VO infrastructure as of pyvo. | ||
|
||
def test_obscore(self): | ||
assert len(regsearch(rtcons.Datamodel('obscore'))) > 0 | ||
|
||
def test_epntap(self): | ||
assert len(regsearch(rtcons.Datamodel('epntap'))) > 0 | ||
|
||
def test_regtap(self): | ||
assert len(regsearch(rtcons.Datamodel('regtap'))) > 0 | ||
|
||
|
||
@pytest.mark.usefixtures('multi_interface_fixture', 'capabilities', | ||
'flash_service') | ||
class TestExtraResourceMethods: | ||
|
@@ -690,8 +707,8 @@ def test_ambiguous_access_url_warns(self, recwarn): | |
"intf_roles": ["std"] * 2, | ||
}) | ||
assert rsc.access_url == "http://a" | ||
assert [str(w.message)[:50] for w in recwarn | ||
] == ['The resource ivo://pyvo/test_regtap.py has multipl'] | ||
assert ('The resource ivo://pyvo/test_regtap.py has multipl' in | ||
[str(w.message)[:50] for w in recwarn]) | ||
|
||
|
||
# TODO: While I suppose the contact test should keep requiring network, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters