Skip to content

Commit ec098fb

Browse files
committed
Skipping test if vamdclib is not available as it's optional dependency
1 parent 3eec0c0 commit ec098fb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

astroquery/vamdc/tests/test_vamdc_remote.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,15 @@
88

99
from astropy.tests.helper import remote_data, pytest
1010

11-
from ... import vamdc
11+
try:
12+
from ... import vamdc
13+
import vamdclib
14+
HAS_VAMDCLIB = True
15+
except ImportError:
16+
HAS_VAMDCLIB = False
1217

1318

19+
@pytest.mark.skipif('not HAS_VAMDCLIB')
1420
@remote_data
1521
class TestVamdcClass:
1622
# now write tests for each method here

0 commit comments

Comments
 (0)