99import pytest
1010from apify_shared .utils import create_hmac_signature , create_storage_content_signature
1111
12- from .utils import TestKvs , get_random_resource_name , parametrized_api_urls
12+ from .utils import KvsFixture , get_random_resource_name , parametrized_api_urls
1313from apify_client import ApifyClientAsync
1414from apify_client ._client import DEFAULT_API_URL
1515from apify_client .errors import ApifyApiError
@@ -137,7 +137,7 @@ async def test_record_public_url(api_token: str, api_url: str, api_public_url: s
137137 )
138138
139139
140- async def test_list_keys_signature (apify_client_async : ApifyClientAsync , test_kvs_of_another_user : TestKvs ) -> None :
140+ async def test_list_keys_signature (apify_client_async : ApifyClientAsync , test_kvs_of_another_user : KvsFixture ) -> None :
141141 kvs = apify_client_async .key_value_store (key_value_store_id = test_kvs_of_another_user .id )
142142
143143 # Permission error without valid signature
@@ -155,7 +155,7 @@ async def test_list_keys_signature(apify_client_async: ApifyClientAsync, test_kv
155155 assert set (test_kvs_of_another_user .expected_content ) == {item .key for item in raw_items }
156156
157157
158- async def test_get_record_signature (apify_client_async : ApifyClientAsync , test_kvs_of_another_user : TestKvs ) -> None :
158+ async def test_get_record_signature (apify_client_async : ApifyClientAsync , test_kvs_of_another_user : KvsFixture ) -> None :
159159 key = 'key1'
160160 kvs = apify_client_async .key_value_store (key_value_store_id = test_kvs_of_another_user .id )
161161
@@ -174,7 +174,7 @@ async def test_get_record_signature(apify_client_async: ApifyClientAsync, test_k
174174
175175
176176async def test_get_record_as_bytes_signature (
177- apify_client_async : ApifyClientAsync , test_kvs_of_another_user : TestKvs
177+ apify_client_async : ApifyClientAsync , test_kvs_of_another_user : KvsFixture
178178) -> None :
179179 key = 'key1'
180180 kvs = apify_client_async .key_value_store (key_value_store_id = test_kvs_of_another_user .id )
@@ -193,7 +193,10 @@ async def test_get_record_as_bytes_signature(
193193 assert test_kvs_of_another_user .expected_content [key ] == json .loads (item ['value' ].decode ('utf-8' ))
194194
195195
196- async def test_stream_record_signature (apify_client_async : ApifyClientAsync , test_kvs_of_another_user : TestKvs ) -> None :
196+ async def test_stream_record_signature (
197+ apify_client_async : ApifyClientAsync ,
198+ test_kvs_of_another_user : KvsFixture ,
199+ ) -> None :
197200 key = 'key1'
198201 kvs = apify_client_async .key_value_store (key_value_store_id = test_kvs_of_another_user .id )
199202
0 commit comments