File tree Expand file tree Collapse file tree 3 files changed +27
-83
lines changed Expand file tree Collapse file tree 3 files changed +27
-83
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ # Licensed under a 3-clause BSD style license - see LICENSE.rst
2+ from __future__ import print_function
3+
4+ import os
5+
6+ from ... import vamdc
7+
8+
9+ def data_path (filename ):
10+ data_dir = os .path .join (os .path .dirname (__file__ ), 'data' )
11+ return os .path .join (data_dir , filename )
12+
13+
14+ # finally test the methods using the mock HTTP response
15+ #def test_query_molecule(patch_request):
16+ # ch3oh = vamdc.core.VamdcClass().query_molecule('CH3OH')
17+ # assert 'SCDMS-2369983' in ch3oh.data['States']
18+
19+ # similarly fill in tests for each of the methods
20+ # look at tests in existing modules for more examples
Original file line number Diff line number Diff line change 88
99from 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
1521class TestVamdcClass :
1622 # now write tests for each method here
You can’t perform that action at this time.
0 commit comments