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
Adopting pytest #199
Adopting pytest #199
Conversation
bsravanin
commented
Apr 21, 2015
- Switching from unittest assertions to basic assert statements.
- Removing boilerplate code related to test suites.
- Adding a TestCommand to setup.py, to run tests using pytest by default.
- Fixing the fabfile changes -- print in dodo.py needs to be imported from future.
- Adding a pytest.ini that runs doctests as well.
file=sys.stderr option of print command needs the print function to be imported from future.
Tests still run using pytest, by using TestCommand in setup.py.
By adding a pytest.ini so that tox and any other test runners can make use of this.
The build failure in Python 2.6 is because of the rounding bug that was fixed in Python 2.7. @wackou, how would you like me to handle this?
Also, what are your expectations for the pull request to be eligible for a merge? Do you expect all commits to pass, or just the final commit? If you expect all commits to pass, I can either squash all the commits into one large commit, or edit the chain of commits into a different set and send as a separate pull request. |
Sorry I haven't had time to look at the pull request in details yet, will try to go over it during the weekend. As for python 2.6, I'm thinking about dropping support for it altogether, I feel at this point it is only holding us back, quality-wise, and doesn't bring us any benefits. Python 2.7 was released 5 years ago already! Other than that, don't bother with squashing the commits or otherwise rewriting the history, as long as the final result works and looks nice that's all I care about 😄 |
looks good! A few questions:
|
oh, and please ignore the issues with python 2.6, I have decided I will drop support for it in the next release of guessit |
For any additional options, you can either:
To show stdout/stderr, use the "-s" option. You can use -k to filter in/out any tests. To run only doctests, use -k"not test_", so that it will exclude any test with "test_" in its name (which is all of the non-doctests). Thanks for pointing out. Fixed tabs in setup.py and re-reviewed them in the rest of the changed files. |
awesome, thanks for your answers! |
Thank you, @wackou. |