Commit 928428ad authored by Jan Klaus Rieck's avatar Jan Klaus Rieck

fix typo in tests of depthave()

parent ab7eb7b6
Pipeline #3612 failed with stage
in 1 minute and 59 seconds
......@@ -320,21 +320,21 @@ def test_timeave_raises_keyerror():
@pytest.mark.parametrize('ds',
[ds, ds_z_c, ds_z_l])
def test_depth_ave(ds):
""" Test depth_ave().
def test_depthave(ds):
""" Test depthave().
"""
ds_d_ave = xbox.depth_ave(ds)[0]
ds_d_ave = xbox.depthave(ds)[0]
assert 'z_c' and 'z_l' not in ds_d_ave.dims,\
'depth averaging failed'
def test_depth_ave_raises_valueerror():
""" Test whether depth_ave() raises value error.
def test_depthave_raises_valueerror():
""" Test whether depthave() raises value error.
"""
with pytest.raises(ValueError):
xbox.ds_d(ds_2d)
xbox.depthave(ds_2d)
@pytest.mark.parametrize('time',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment