-
Notifications
You must be signed in to change notification settings - Fork 459
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
Switching python unittest to pytest framework #1739
base: main
Are you sure you want to change the base?
Switching python unittest to pytest framework #1739
Commits on Jan 25, 2023
-
Switching python unittest to pytest framework
This change may also have a small naming requirement as we can see in the pyproject.toml. It prompted me to change the helper function name from test_percent_1000() to helper_test_percent_1000 since pytest config will now discover every functions starting with test_*. However, I thought it may still be worth the switch for possible pytest features we can leverage down the road. Just wanted to see what the thought is on switching and the changes in config. May need to change the docs/guides/contributing/unit_tests.rst to reflect this config change as well. Signed-off-by: Mei Chu <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d23173b - Browse repository at this point
Copy the full SHA d23173bView commit details -
Adding more pytest options into pyproject.toml.
Signed-off-by: Mei Chu <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b94df2c - Browse repository at this point
Copy the full SHA b94df2cView commit details -
-Set minimum version of pytest to 6 to support myproject.toml.
Signed-off-by: Mei Chu <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1d86e1e - Browse repository at this point
Copy the full SHA 1d86e1eView commit details -
- Added pytest.ini as an older pytest config file.
Signed-off-by: Mei Chu <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6d9e3c8 - Browse repository at this point
Copy the full SHA 6d9e3c8View commit details -
-Removed pytest version requirement because python2 support is droppe…
…d before pytest version 5. Signed-off-by: Mei Chu <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 293ac11 - Browse repository at this point
Copy the full SHA 293ac11View commit details -
-Add pytest to wheel test requirement.
Signed-off-by: Mei Chu <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c384532 - Browse repository at this point
Copy the full SHA c384532View commit details -
-Remove pytest component of pyproject.toml. -Conform tests to pytest naming convention. Signed-off-by: Mei Chu <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7c9d6ab - Browse repository at this point
Copy the full SHA 7c9d6abView commit details
Commits on Jan 27, 2023
-
Configuration menu - View commit details
-
Copy full SHA for ad08648 - Browse repository at this point
Copy the full SHA ad08648View commit details