Skip to content

Commit

Permalink
Add test (#346)
Browse files Browse the repository at this point in the history
  • Loading branch information
zikolach committed Jul 7, 2020
1 parent 9785f37 commit 51fbaaa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ixmp/tests/core/test_timeseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,13 @@ def test_add_timeseries(ts, fmt):
ts.add_timeseries(DATA[0].drop('unit', axis=1))


@pytest.mark.parametrize('fmt', ['long', 'wide'])
def test_add_timeseries_unit(ts, fmt):
data = DATA[0].copy() if fmt == 'long' else wide(DATA[0])
data['unit'] = 1
ts.add_timeseries(data)


@pytest.mark.parametrize('fmt', ['long', 'wide'])
def test_add_and_remove_timeseries_with_long_variable_name(ts, fmt):
data = (DATA[0] if fmt == 'long' else wide(DATA[0])).copy()
Expand Down

0 comments on commit 51fbaaa

Please sign in to comment.