Skip to content

Commit

Permalink
Merge 9105cd4 into ef15d30
Browse files Browse the repository at this point in the history
  • Loading branch information
noahfx committed Aug 2, 2018
2 parents ef15d30 + 9105cd4 commit fe06a51
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pyvo/dal/tests/test_tap.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def _test_image_results(results):


@pytest.fixture()
def sync(mocker):
def sync_fixture(mocker):
def callback(request, context):
return get_pkg_data_contents('data/tap/obscore-image.xml')

Expand All @@ -58,7 +58,7 @@ def callback(request, context):


@pytest.fixture()
def async(mocker):
def async_fixture(mocker):
class Callback(object):
def __init__(self):
self._jobs = dict()
Expand Down Expand Up @@ -244,7 +244,7 @@ def test_escape():
"SELECT * FROM ivoa.obscore WHERE dataproduct_type = ''image''")


@pytest.mark.usefixtures('sync')
@pytest.mark.usefixtures('sync_fixture')
@pytest.mark.filterwarnings("ignore::astropy.io.votable.exceptions.W27")
@pytest.mark.filterwarnings("ignore::astropy.io.votable.exceptions.W48")
@pytest.mark.filterwarnings("ignore::astropy.io.votable.exceptions.W06")
Expand Down Expand Up @@ -303,7 +303,7 @@ def test_upload_methods(self):
assert upload_methods[3].ivo_id == (
'ivo://ivoa.net/std/TAPRegExt#upload-http')

@pytest.mark.usefixtures('sync')
@pytest.mark.usefixtures('sync_fixture')
@pytest.mark.filterwarnings("ignore::astropy.io.votable.exceptions.W27")
@pytest.mark.filterwarnings("ignore::astropy.io.votable.exceptions.W48")
@pytest.mark.filterwarnings("ignore::astropy.io.votable.exceptions.W06")
Expand All @@ -312,7 +312,7 @@ def test_run_sync(self):
results = service.run_sync("SELECT * FROM ivoa.obscore")
_test_image_results(results)

@pytest.mark.usefixtures('sync')
@pytest.mark.usefixtures('sync_fixture')
@pytest.mark.filterwarnings("ignore::astropy.io.votable.exceptions.W27")
@pytest.mark.filterwarnings("ignore::astropy.io.votable.exceptions.W48")
@pytest.mark.filterwarnings("ignore::astropy.io.votable.exceptions.W06")
Expand All @@ -321,7 +321,7 @@ def test_search(self):
results = service.search("SELECT * FROM ivoa.obscore")
_test_image_results(results)

@pytest.mark.usefixtures('async')
@pytest.mark.usefixtures('async_fixture')
@pytest.mark.filterwarnings("ignore::astropy.io.votable.exceptions.W27")
@pytest.mark.filterwarnings("ignore::astropy.io.votable.exceptions.W48")
@pytest.mark.filterwarnings("ignore::astropy.io.votable.exceptions.W06")
Expand All @@ -330,7 +330,7 @@ def test_run_async(self):
results = service.run_async("SELECT * FROM ivoa.obscore")
_test_image_results(results)

@pytest.mark.usefixtures('async')
@pytest.mark.usefixtures('async_fixture')
def test_submit_job(self):
service = TAPService('http://example.com/tap')
job = service.submit_job(
Expand All @@ -346,7 +346,7 @@ def test_submit_job(self):
job.wait()
job.delete()

@pytest.mark.usefixtures('async')
@pytest.mark.usefixtures('async_fixture')
def test_modify_job(self):
service = TAPService('http://example.com/tap')
job = service.submit_job(
Expand Down

0 comments on commit fe06a51

Please sign in to comment.