Closed sebheger closed 1 year ago
@Markus28 Could you provide the necessary unit-tests? You mentioned in #288 that you tested the complete removal workflow. Thanks!
In the test_remove
method in test_model.py
, just add the line m.remove(x)
at the very bottom.
I'm not 100% sure what is supposed to happen when you remove a variable that is used in a constraint or the objective thought, so it might make sense to add a test for that case as well (e.g. if some exception is supposed to be raised).
Fixes #294