We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
requests/tests/test_requests.py at main · psf/requests
def test_header_validation(self, httpbin): """Ensure prepare_headers regex isn't flagging valid header contents.""" valid_headers = { "foo": "bar baz qux", "bar": b"fbbq", "baz": "", "qux": "1", } r = requests.get(httpbin("get"), headers=valid_headers) for key in valid_headers.keys(): valid_headers[key] == r.request.headers[key]
valid_headers[key] == r.request.headers[key] should probably be assert valid_headers[key] == r.request.headers[key].
valid_headers[key] == r.request.headers[key]
assert valid_headers[key] == r.request.headers[key]
The text was updated successfully, but these errors were encountered:
I would like to contribute to solve this issue. @sigmavirus24 can I take this up?
Sorry, something went wrong.
Merge pull request #6552 from swims-hjkl/issue/test_header_validation
839a8ed
#6551 - assert statements for test test_header_validation
Resolved in #6552
No branches or pull requests
requests/tests/test_requests.py at main · psf/requests
valid_headers[key] == r.request.headers[key]
should probably beassert valid_headers[key] == r.request.headers[key]
.The text was updated successfully, but these errors were encountered: