-
Notifications
You must be signed in to change notification settings - Fork 446
Use pytest markers for slycot, cvxopt, and pandas tests #1182
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
Conversation
The pytest marker slycot is equivalent to the slycotonly decorator, and also allows slycot tests to be included or excluded at the pytest command-line.
The pytest marker cvxopt is equivalent to the cvxoptonly decorator, and also allows cvxopt tests to be included or excluded at the pytest command-line.
|
Is it expected that the |
|
It only runs when one of the specified files in .github is changed: #821 |
|
Anyone had a look at this yet? Would like to merge this so Slycot tests can be clean, and we can move ahead with python-control/Slycot#250 . |
control/tests/conftest.py
Outdated
| cvxoptonly = pytest.mark.skipif( | ||
| not control.exception.cvxopt_check(), reason="cvxopt not installed") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replace this as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, missed that. Fixed in 01d76fd
|
Yes, sorry for not getting back earlier. LGTM. |
Using these markers allows selection of tests at the command-line, which is useful to focus on specific test types in development, and specifically allows testing only Slycot-dependent tests in Slycot CI.