Skip to content

Commit

Permalink
Test Future warning in Flow invenstment
Browse files Browse the repository at this point in the history
  • Loading branch information
p-snft committed Oct 13, 2023
1 parent a849327 commit 6cb4bbf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_solph_network_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ def test_wrong_combination_invest_and_nominal_value():
solph.flows.Flow(investment=solph.Investment(), nominal_value=4)


def test_invest_attribute_warning():
msg = "For backward compatibility, the option investment overwrites"
with pytest.warns(FutureWarning, match=msg):
solph.flows.Flow(investment=solph.Investment())


def test_fixed_costs_warning():
msg = (
"Be aware that the fixed costs attribute is only\n"
Expand Down

0 comments on commit 6cb4bbf

Please sign in to comment.