Skip to content

Commit 51fbaaa

Browse files
committed
Add test (#346)
1 parent 9785f37 commit 51fbaaa

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ixmp/tests/core/test_timeseries.py

+7
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,13 @@ def test_add_timeseries(ts, fmt):
206206
ts.add_timeseries(DATA[0].drop('unit', axis=1))
207207

208208

209+
@pytest.mark.parametrize('fmt', ['long', 'wide'])
210+
def test_add_timeseries_unit(ts, fmt):
211+
data = DATA[0].copy() if fmt == 'long' else wide(DATA[0])
212+
data['unit'] = 1
213+
ts.add_timeseries(data)
214+
215+
209216
@pytest.mark.parametrize('fmt', ['long', 'wide'])
210217
def test_add_and_remove_timeseries_with_long_variable_name(ts, fmt):
211218
data = (DATA[0] if fmt == 'long' else wide(DATA[0])).copy()

0 commit comments

Comments
 (0)