Commit f734215f authored by Jan Klaus Rieck's avatar Jan Klaus Rieck

test_depthsum/test_depthave(): two depth ranges to test different lengths of z_l and z_c

parent 17337448
Pipeline #3650 failed with stage
in 43 seconds
......@@ -341,13 +341,13 @@ def test_timesum_raises_keyerror():
@pytest.mark.parametrize('ds_in',
[ds, ds_z_c])
@pytest.mark.parametrize('dep',
[[500, 1000], []])
[[500, 1000], [530, 990]])
def test_depthave(ds_in):
""" Test depthave().
"""
ds_a = xbox.getbox(ds_in, time=['2000-01-01', '2000-06-30'],
depth=[500, 1000], x=[10, 20], y=[10, 20])
depth=dep, x=[10, 20], y=[10, 20])
ds_d_ave = xbox.depthave(ds_a)[0]
assert 'z_c' and 'z_l' not in ds_d_ave.dims,\
'depth averaging failed'
......@@ -363,12 +363,14 @@ def test_depthave_raises_valueerror():
@pytest.mark.parametrize('ds_in',
[ds, ds_z_c])
@pytest.mark.parametrize('dep',
[[500, 1000], [530, 990]])
def test_depthsum(ds_in):
""" Test depthsum().
"""
ds_s = xbox.getbox(ds_in, time=['2000-01-01', '2000-06-30'],
depth=[500, 1000], x=[10, 20], y=[10, 20])
depth=dep, x=[10, 20], y=[10, 20])
ds_d_sum = xbox.depthsum(ds_s)[0]
assert 'z_c' and 'z_l' not in ds_d_sum.dims,\
'depth summing failed'
......
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