-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Convert --version tests to pytest #5026
Conversation
Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide. |
tests/unit/basic/test_version.py
Outdated
@@ -0,0 +1,630 @@ | |||
import pytest |
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.
I placed this file under tests/unit/basic
, since it's only explicitly testing the get_version_information
function from version.py
. There were no existing unit tests, so I'm not sure what the structure here should be.
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.
Good question. The old unit tests were all in one directory, and we don't have such a large number that it was much of an issue. So I'd be inclined to do the same for the converted tests, i.e. not put them in subdirectories of 'unit'. It feels like separating them out into subdirectories would just make them harder to find.
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.
Looks good!
tests/unit/basic/test_version.py
Outdated
@@ -0,0 +1,630 @@ | |||
import pytest |
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.
Good question. The old unit tests were all in one directory, and we don't have such a large number that it was much of an issue. So I'd be inclined to do the same for the converted tests, i.e. not put them in subdirectories of 'unit'. It feels like separating them out into subdirectories would just make them harder to find.
Convert --version tests to pytest
Convert --version tests to pytest
resolves #5024
Description
Converted old
--version
unit tests topytest
Checklist