Skip to content

Commit 1e8faf6

Browse files
committed
refactor: clean up
1 parent 77384c5 commit 1e8faf6

File tree

2 files changed

+0
-30
lines changed

2 files changed

+0
-30
lines changed

tests/integration/key_value_store.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
from __future__ import annotations
22

3-
import asyncio
4-
import time
53
from typing import TYPE_CHECKING
64

75
import httpx
@@ -30,13 +28,6 @@ def test_key_value_store_should_create_expiring_keys_public_url_with_params(
3028
response = httpx_client.get(keys_public_url, timeout=5)
3129
assert response.status_code == 200
3230

33-
time.sleep(3)
34-
35-
# Assert that the request is now forbidden (expired signature)
36-
httpx_client = httpx.Client()
37-
response_after_expiry = httpx_client.get(keys_public_url, timeout=5)
38-
assert response_after_expiry.status_code == 403
39-
4031
store.delete()
4132
assert apify_client.key_value_store(created_store['id']).get() is None
4233

@@ -77,12 +68,6 @@ async def test_key_value_store_should_create_expiring_keys_public_url_with_param
7768
response = await httpx_async_client.get(keys_public_url, timeout=5)
7869
assert response.status_code == 200
7970

80-
await asyncio.sleep(3)
81-
82-
# Assert that the request is now forbidden (expired signature)
83-
response_after_expiry = await httpx_async_client.get(keys_public_url, timeout=5)
84-
assert response_after_expiry.status_code == 403
85-
8671
await store.delete()
8772
assert await apify_client_async.key_value_store(created_store['id']).get() is None
8873

tests/integration/test_dataset.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
from __future__ import annotations
22

3-
import asyncio
4-
import time
53
from typing import TYPE_CHECKING
64

75
import httpx
@@ -30,13 +28,6 @@ def test_dataset_should_create_public_items_expiring_url_with_params(self, apify
3028
response = httpx_client.get(items_public_url, timeout=5)
3129
assert response.status_code == 200
3230

33-
time.sleep(3)
34-
35-
# Assert that the request is now forbidden (expired signature)
36-
httpx_client = httpx.Client()
37-
response_after_expiry = httpx_client.get(items_public_url, timeout=5)
38-
assert response_after_expiry.status_code == 403
39-
4031
dataset.delete()
4132
assert apify_client.dataset(created_dataset['id']).get() is None
4233

@@ -77,12 +68,6 @@ async def test_dataset_should_create_public_items_expiring_url_with_params(
7768
response = await httpx_async_client.get(items_public_url, timeout=5)
7869
assert response.status_code == 200
7970

80-
await asyncio.sleep(3)
81-
82-
# Assert that the request is now forbidden (expired signature)
83-
response_after_expiry = await httpx_async_client.get(items_public_url, timeout=5)
84-
assert response_after_expiry.status_code == 403
85-
8671
await dataset.delete()
8772
assert await apify_client_async.dataset(created_dataset['id']).get() is None
8873

0 commit comments

Comments
 (0)