Skip to content

Commit

Permalink
TST: update instrument tests
Browse files Browse the repository at this point in the history
Update the instrument tests.  If `supported_tags` is not present, do not require it.  It is only required if the Instrument has 'cdf' files.
  • Loading branch information
aburrell committed Aug 5, 2024
1 parent 31e4327 commit be1bbe3
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions pysatNASA/tests/test_instruments.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,12 @@
skip_cdf_list = ['de2_vefimagb']

for inst in instruments['download']:
fname = inst['inst_module'].supported_tags[inst['inst_id']][inst['tag']]
if '.cdf' in fname:
temp_inst, _ = clslib.initialize_test_inst_and_date(inst)
if temp_inst.pandas_format and temp_inst.name not in skip_cdf_list:
instruments['cdf'].append(inst)
if hasattr(inst['inst_module'], 'supported_tags'):
fname = inst['inst_module'].supported_tags[inst['inst_id']][inst['tag']]
if '.cdf' in fname:
temp_inst, _ = clslib.initialize_test_inst_and_date(inst)
if temp_inst.pandas_format and temp_inst.name not in skip_cdf_list:
instruments['cdf'].append(inst)


class TestInstruments(clslib.InstLibTests):
Expand Down

0 comments on commit be1bbe3

Please sign in to comment.