We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab0c646 commit d6af40aCopy full SHA for d6af40a
1 file changed
tests/catalog/test_rest.py
@@ -558,6 +558,7 @@ def test_sigv4_sign_request_with_body(rest_mock: Mocker) -> None:
558
assert prepared.headers["Original-Authorization"] == f"Bearer {existing_token}"
559
# Non-empty body should have base64-encoded SHA256
560
content_sha256 = prepared.headers["x-amz-content-sha256"]
561
+ assert prepared.body is not None
562
body_bytes = prepared.body.encode("utf-8") if isinstance(prepared.body, str) else prepared.body
563
expected_sha256 = base64.b64encode(hashlib.sha256(body_bytes).digest()).decode()
564
assert content_sha256 == expected_sha256
0 commit comments