Commit 424baeb0 authored by Jan Klaus Rieck's avatar Jan Klaus Rieck

leave test_xorca_box.py coverage as it is for now

parent 5b2c532f
Pipeline #3598 passed with stage
in 1 minute and 34 seconds
......@@ -209,12 +209,10 @@ def test_getbox(time, depth, x):
y = [10, 20]
ds_box = xbox.getbox(ds, time=time, depth=depth, y=y, x=x)
if time == ['2000-01-01', '2000-31-01']:
t_len = 1
assert (ds_box.dims['t'] == t_len),\
assert (ds_box.dims['t'] == 1),\
'time extraction failed'
elif time == ['2000-01-01', '2000-30-06']:
t_len = 6
assert (ds_box.dims['t'] == t_len),\
assert (ds_box.dims['t'] == 6),\
'time extraction failed'
if len(depth) == 1:
assert ('z_c' not in ds_box.dims) and ('z_l' not in ds_box.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