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
Fix skipping tests requiring httptools #1538
Conversation
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.
Can we follow the same style as test_http.py
on test_logging.py
?
HTTP_PROTOCOLS = [p for p in [H11Protocol, HttpToolsProtocol] if p is not None]
The test suite currently skips some tests when httptools are missing. However, there are more tests requiring it and they currently fail if that is the case. Cover them with necessary skips as well.
This is much nicer. Thanks, done that! |
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.
@euri10 I'm fine with this already.
I'll let this in your hand. 🙏
ok let's roll with this, thanks @mgorny and thanks for clarifications in the other PR, and thanks for packaging uvicorn :) |
Thanks a lot! |
The test suite currently skips some tests when httptools are missing. However, there are more tests requiring it and they currently fail if that is the case. Cover them with necessary skips as well.
The test suite currently skips some tests when httptools are missing. However, there are more tests requiring it and they currently fail if that is the case. Cover them with necessary skips as well.
The test suite currently skips some tests when httptools are missing.
However, there are more tests requiring it and they currently fail
if that is the case. Cover them with necessary skips as well.