Skip to content

Commit

Permalink
TEST: use marker nonfree for tests with Gurobi
Browse files Browse the repository at this point in the history
And this can be used to mark tests with MOSEK and other
extra dependencies with restrictive licenses in the future.

These tests are not included by default and must be requested:

    pytest -m nonfree tests
  • Loading branch information
slivingston committed Oct 1, 2024
1 parent 9689641 commit e41fc28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/polytope_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,7 @@ def test_reduce():
assert_allclose(u, np.array([[50.], [1.]]), rtol=1e-07, atol=1e-07)


@pytest.mark.nonfree
def test_gurobipy_return_same_result_as_scipy():
c, A, b = example_1d()
result_gurobi = solvers.lpsolve(c, A, b, solver='gurobi')
Expand Down
2 changes: 2 additions & 0 deletions tests/pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[pytest]
addopts = -m 'not nonfree'

0 comments on commit e41fc28

Please sign in to comment.