Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LP Tests #72

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

LP Tests #72

wants to merge 4 commits into from

Conversation

vineetbansal
Copy link
Contributor

@vineetbansal vineetbansal commented Feb 15, 2022

To test to effects of PR #70, I've added a codegen test where P is None. This would have failed on Windows before PR #70 but should pass now. Specifying P as None and later updating to a non-None value using the update_P method does not seem to be supported, so I'm only testing some other cases here - solve, update_A etc.

While I was at it, I noticed that the codegen tests were relying on the fact that test_solve will be executed before any other tests (test_update_*). This is not guaranteed but is probably only happening because tests are picked up in alphabetic order, so I've moved the codegen logic to the class method, and am re-setting the model in setUp.

Also enabled codegen checks on the CI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant