Skip to content

Commit cc7b4e5

Browse files
author
Alexander Vasin
committed
Fix tests
1 parent 24eb04c commit cc7b4e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_simple.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -188,16 +188,16 @@ def test_presign_absolute_url(s3_client, method, given_url):
188188

189189
@freeze_time("2024-01-01")
190190
def test_presign_url(s3_client):
191-
url = s3_client.presign_url('get', URL('./example'))
191+
url = s3_client.presign_url('get', URL('./example'), expires=60 * 60)
192192
assert url.path.endswith('/example')
193193
assert url.query == {
194194
'X-Amz-Algorithm': 'AWS4-HMAC-SHA256',
195195
'X-Amz-Content-Sha256': 'UNSIGNED-PAYLOAD',
196196
'X-Amz-Credential': 'user/20240101/us-east-1/s3/aws4_request',
197197
'X-Amz-Date': '20240101T000000Z',
198-
'X-Amz-Expires': '86400',
198+
'X-Amz-Expires': '3600',
199199
'X-Amz-SignedHeaders': 'host',
200200
'X-Amz-Signature': (
201-
'56721317f5ed477b6d2d46740f1a92996a207f17d494f159ea31158f01415ed3'
201+
'3a1bbc47ae3e9273b61f14212fd82baffbcef8bdae02db0e375f0580f1de0523'
202202
)
203203
}

0 commit comments

Comments
 (0)