-
-
Notifications
You must be signed in to change notification settings - Fork 946
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
Deprecate testtools
support
#2156
Comments
Another option is to drop |
I have no opinion on this, either way works for me |
I don't think we need to keep supporting it. It's a minor convenience left over from early OpenStack days for a very small community relative to the broader python ecosystem. |
We won't be able to fully drop it until 5.0, but we should emit a deprecation warning whenever the |
Remove conditional dependency on testtools in TestCase to simplify maintenance and prepare for Falcon 5.0 where testtools will no longer be supported. Instead, unittest is now the default, and users are encouraged to use pytest for testing Falcon applications. This change emits a deprecation warning if testtools is still enabled via environment variables. BREAKING CHANGE: testtools support is deprecated and scheduled for removal in Falcon 5.0. Closes falconry#2156
I’m sorry for the mistake with my previous pull request. I realize now that this wasn’t the correct process, and I apologize for any inconvenience it may have caused. I’m currently in the process of fixing this and will submit the pull request the correct way. |
Remove conditional dependency on testtools in TestCase to simplify maintenance and prepare for Falcon 5.0 where testtools will no longer be supported. Instead, unittest is now the default, and users are encouraged to use pytest for testing Falcon applications. This change emits a deprecation warning if testtools is still enabled via environment variables. Closes falconry#2156
No worries @EricGoulart, and thanks for your interest in contributing to this issue! |
At the time of writing, our documentation might give an impression that using
testtools
is the preferred way to write tests for a Falcon app.I haven't done any research or survey in the area, but just subjectively it feels that the most popular testing frameworks in 2023 are
pytest
followed by the stdlib'sunittest
(both are also well supported by Falcon).Moreover, IIRC I had to exclude
testtools
from our test dependencies when adding Python 3.10 CI gates, since it wasn't 3.10-ready by the time. So it's becoming a maintenance burden, too.OTOH, it seems that there has been a new
testtools
release, and the project is still maintained. So after all maybe it doesn't hurt to keep the integration?Even if we decide to keep
testtools
, we should IMHO reword the docs not to give the impression it is the preferred way, and link to our tutorial for usingpytest
in the same paragraph.The text was updated successfully, but these errors were encountered: