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