Skip to content

Commit

Permalink
Merge pull request #137 from dstansby/test-varattsget
Browse files Browse the repository at this point in the history
Test varattsget
  • Loading branch information
dstansby committed Feb 18, 2022
2 parents d1e9b6e + 9489a91 commit 0815f15
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/test_cdfread.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,10 @@
def test_read():
fname = (pathlib.Path(__file__) / '..' / 'testfiles' /
'psp_fld_l2_mag_rtn_1min_20200104_v02.cdf')
cdflib.CDF(fname)
cdf = cdflib.CDF(fname)
info = cdf.cdf_info()

assert isinstance(info, dict)

varatts = cdf.varattsget('psp_fld_l2_mag_RTN_1min')
assert isinstance(varatts, dict)

0 comments on commit 0815f15

Please sign in to comment.