Skip to content

Commit

Permalink
ADD: Add fake group to test
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrover1 committed Mar 28, 2024
1 parent 5b2258c commit 5945ad2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,5 +260,7 @@ def test_get_sweep_keys():
# Test finding sweep keys
filename = DATASETS.fetch("sample_sgp_data.nc")
dt = io.open_cfradial1_datatree(filename)
# set a fake group
dt["sneep_1"] = dt["sweep_1"]
keys = util.get_sweep_keys(dt)
assert keys == ["sweep_0", "sweep_1", "sweep_2", "sweep_3", "sweep_4", "sweep_5"]

0 comments on commit 5945ad2

Please sign in to comment.