pysat / pysatNASA

pysat support for NASA Instruments
BSD 3-Clause "New" or "Revised" License
21 stars 7 forks source link

BUG/TST: update test behavior in the absence/presence of pysatCDF #156

Closed jklenzing closed 1 year ago

jklenzing commented 1 year ago

Description

Addresses #142

pysatCDF has known issues with numpy>= 1.24 (see https://github.com/pysat/pysatCDF/issues/46). Since this is an optional install, the test behavior here is altered so that a package-wide version cap for numpy is not required.

NOTE: this is required before #155 can be tested.

Type of change

How Has This Been Tested?

Running Lines 1-41 of test_instruments.py to inspect whether instruments['cdf'] is correctly generate (ie, ACE and TIMED/SEE instrument not included since these are xarray).

Running pytest with pysatCDF installed and not installed to verify that skipif tests are working correctly.

Test Configuration

Checklist: