Convert unittest test cases to pytest #327
Closed
DhavalGojiya
started this conversation in
Ideas
Replies: 1 comment 4 replies
Can you please explain this a bit more? In my personal experience with testing around Django, unittest (with additions coming from Django) performs pretty similar to pytest. I think pytest feels familiar to some developers, but I wouldn't migrate an existing setup/codebase to pytest just because of that. |
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Convert unittest test cases to pytest
PyTest --> https://docs.pytest.org/en/stable/
Summary
This project test files still use Python's built in
unittestframework. Converting them topytestwill make the test suite more consistent, easier to read, and simpler to maintain.Potential Tasks
unittest.TestCaseclasses topyteststyle tests.self.assert*methods with standardassertstatements.pytestfixtures where appropriate instead ofsetUpandtearDown.All reactions