Skip to content

Commit

Permalink
Update test_builder.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tschm authored Nov 26, 2023
1 parent 1fa07eb commit d5558fe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,9 @@ def test_weights_on_wrong_days(resource_dir):
with pytest.raises(ValueError):
b.set_position(t[-1], pd.Series(index={"A", "B", "C"}, data=[5, 5, 5]))

with pytest.raises(ValueError):
b[t[-1]] = pd.Series(index={"A", "B", "C"}, data=[5, 5, 5])

for t, state in b:
b.set_weights(
t[-1],
Expand Down

0 comments on commit d5558fe

Please sign in to comment.