Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add test_verbose
Browse files Browse the repository at this point in the history
rschwarz committed Jan 17, 2025
1 parent 5de89ae commit a0d4035
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/test_model.py
Original file line number Diff line number Diff line change
@@ -1294,6 +1294,21 @@ def test_copy(solver):
assert id(term.expr) != id(term_copy.expr)


@skip_on(NotImplementedError)
@pytest.mark.parametrize("solver", SOLVERS)
def test_verbose(solver):
# set and get verbose flag
m = Model(solver_name=solver)

# active
m.verbose = 1
assert m.verbose == 1

# inactive
m.verbose = 0
assert m.verbose == 0


@skip_on(NotImplementedError)
@pytest.mark.parametrize("solver", SOLVERS)
def test_constraint_with_lin_expr_and_lin_expr(solver):

0 comments on commit a0d4035

Please sign in to comment.