Support for writing unit tests Gurobipy
AnsweredHas anyone successfully written unit tests involving Gurobipy Model objects? I want to test some code that uses gurobipy.Model but I don't want to take up a license seat for every test.The token server is hit as soon as I invoke gurobipy.Model().
Are there any stubs/fakes of gurobipy.Model that we can use to verify correct code is being sent to the model but not actually exercising the backend solver?
0
-
Official comment
This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?. -
Hi Mike,
I suppose this is not possible without a proper license. There is no "dummy" or "shallow" Model class for this purpose. To get around using too many licenses, you could just keep the current environment and execute all tests consecutively within this environment.
Cheers,
Matthias0
Post is closed for comments.
Comments
2 comments