| Conditions | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | """Tests of the _options module. |
||
| 30 | def test_check_nonconvex(): |
||
| 31 | """ |
||
| 32 | Check warning being thrown if minimum and offset are zero and nonconvex |
||
| 33 | is set |
||
| 34 | """ |
||
| 35 | with pytest.warns(debugging.SuspiciousUsageWarning): |
||
| 36 | solph.Flow( |
||
| 37 | nominal_capacity=solph.Investment( |
||
| 38 | maximum=1, minimum=0, offset=0, nonconvex=True |
||
| 39 | ) |
||
| 41 |