Commit 3fdf20b1 authored by Jan Klaus Rieck's avatar Jan Klaus Rieck

resolve duplicate naming in test_depthave and test_depthsum

parent 1b9f64a2
Pipeline #3641 failed with stage
in 1 minute and 40 seconds
......@@ -338,13 +338,13 @@ def test_timesum_raises_keyerror():
xbox.timesum(ds_t_sum)
@pytest.mark.parametrize('ds',
@pytest.mark.parametrize('ds_in',
[ds, ds_z_c])
def test_depthave(ds):
def test_depthave(ds_in):
""" Test depthave().
"""
ds_box = xbox.getbox(ds, time=['2000-01-01', '2000-06-30'],
ds_box = xbox.getbox(ds_in, time=['2000-01-01', '2000-06-30'],
depth=[500, 1000], x=[10, 20], y=[0, 40])
ds_d_ave = xbox.depthave(ds_box)[0]
assert 'z_c' and 'z_l' not in ds_d_ave.dims,\
......@@ -359,13 +359,13 @@ def test_depthave_raises_valueerror():
xbox.depthave(ds_2d)
@pytest.mark.parametrize('ds',
@pytest.mark.parametrize('ds_in',
[ds, ds_z_c])
def test_depthsum(ds):
def test_depthsum(ds_in):
""" Test depthsum().
"""
ds_box = xbox.getbox(ds, time=['2000-01-01', '2000-06-30'],
ds_box = xbox.getbox(ds_in, time=['2000-01-01', '2000-06-30'],
depth=[500, 1000], x=[10, 20], y=[0, 40])
ds_d_sum = xbox.depthsum(ds_box)[0]
assert 'z_c' and 'z_l' not in ds_d_sum.dims,\
......
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