File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 44
55def get_package_data ():
66 paths_test = [os .path .join ('data' , 'CO_colons.csv' )]
7+ paths_data = [os .path .join ('data' ,'*.json' )]
78
8- return {'astroquery.splatalogue.tests' : paths_test }
9+ return {'astroquery.splatalogue.tests' : paths_test ,
10+ 'astroquery.splatalogue' : paths_data }
Original file line number Diff line number Diff line change @@ -41,3 +41,8 @@ def test_init(patch_post):
4141 assert len (x ) == len (y )
4242 assert all (y ['Species' ] == x ['Species' ])
4343 assert all (x ['Chemical Name' ]== y ['Chemical Name' ])
44+
45+ def test_load_species_table ():
46+ tbl = splatalogue .load_species_table .species_lookuptable ()
47+ CO = tbl .find (' CO ' )
48+ assert len (CO ) == 4
Original file line number Diff line number Diff line change 7070extensions = []
7171
7272# A dictionary to keep track of all package data to install
73- package_data = {PACKAGENAME : ['data/*' ],
74- 'astroquery.splatalogue' :['astroquery/splatalogue/data/*.json' ]}
73+ package_data = {PACKAGENAME : ['data/*' ]}
7574
7675# A dictionary to keep track of extra packagedir mappings
7776package_dirs = {}
104103 scripts = scripts ,
105104 requires = ['astropy' ],
106105 install_requires = ['astropy' ],
107- data_files = [('astroquery.splatalogue' ,['astroquery/splatalogue/data/species.json' ])],
108106 include_package_data = True ,
109107 provides = [PACKAGENAME ],
110108 license = LICENSE ,
You can’t perform that action at this time.
0 commit comments