Skip to content

Commit 8369ff9

Browse files
committed
Test with crawlee branch storage-clients-and-configurations
1 parent 59e039f commit 8369ff9

File tree

8 files changed

+9
-35
lines changed

8 files changed

+9
-35
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ keywords = [
3636
dependencies = [
3737
"apify-client>=2.0.0,<3.0.0",
3838
"apify-shared>=2.0.0,<3.0.0",
39-
"crawlee==1.0.0rc1",
39+
"crawlee @ git+https://github.com/apify/crawlee-python.git@storage-clients-and-configurations",
4040
"cachetools>=5.5.0",
4141
"cryptography>=42.0.0",
4242
# TODO: ensure compatibility with the latest version of lazy-object-proxy

src/apify/_actor.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,6 @@ async def open_dataset(
429429
return await Dataset.open(
430430
id=id,
431431
name=name,
432-
configuration=self._configuration,
433432
storage_client=storage_client,
434433
)
435434

@@ -463,7 +462,6 @@ async def open_key_value_store(
463462
return await KeyValueStore.open(
464463
id=id,
465464
name=name,
466-
configuration=self._configuration,
467465
storage_client=storage_client,
468466
)
469467

@@ -500,7 +498,6 @@ async def open_request_queue(
500498
return await RequestQueue.open(
501499
id=id,
502500
name=name,
503-
configuration=self._configuration,
504501
storage_client=storage_client,
505502
)
506503

src/apify/scrapy/extensions/_httpcache.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ async def open_kvs() -> KeyValueStore:
5656
storage_client = ApifyStorageClient()
5757
return await KeyValueStore.open(
5858
name=kvs_name,
59-
configuration=configuration,
6059
storage_client=storage_client,
6160
)
6261
return await KeyValueStore.open(name=kvs_name)

src/apify/scrapy/scheduler.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ async def open_rq() -> RequestQueue:
5353
if configuration.is_at_home:
5454
storage_client = ApifyStorageClient()
5555
return await RequestQueue.open(
56-
configuration=configuration,
5756
storage_client=storage_client,
5857
)
5958
return await RequestQueue.open()
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# The test fixture will put the Apify SDK wheel path on the next line
22
APIFY_SDK_WHEEL_PLACEHOLDER
33
uvicorn[standard]
4-
crawlee[parsel]==1.0.0rc1
4+
crawlee[parsel] @ git+https://github.com/apify/crawlee-python.git@storage-clients-and-configurations

tests/integration/conftest.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,8 @@ def _prepare_test_env() -> None:
6060
service_locator._storage_client = None
6161
service_locator._storage_instance_manager = None
6262

63-
# Reset the retrieval flags.
64-
service_locator._configuration_was_retrieved = False
65-
service_locator._event_manager_was_retrieved = False
66-
service_locator._storage_client_was_retrieved = False
67-
6863
# Verify that the test environment was set up correctly.
6964
assert os.environ.get(ApifyEnvVars.LOCAL_STORAGE_DIR) == str(tmp_path)
70-
assert service_locator._configuration_was_retrieved is False
71-
assert service_locator._storage_client_was_retrieved is False
72-
assert service_locator._event_manager_was_retrieved is False
7365

7466
return _prepare_test_env
7567

tests/unit/conftest.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,8 @@ def _prepare_test_env() -> None:
5151
service_locator._storage_client = None
5252
service_locator._storage_instance_manager = None
5353

54-
# Reset the retrieval flags.
55-
service_locator._configuration_was_retrieved = False
56-
service_locator._event_manager_was_retrieved = False
57-
service_locator._storage_client_was_retrieved = False
58-
5954
# Verify that the test environment was set up correctly.
6055
assert os.environ.get(ApifyEnvVars.LOCAL_STORAGE_DIR) == str(tmp_path)
61-
assert service_locator._configuration_was_retrieved is False
62-
assert service_locator._storage_client_was_retrieved is False
63-
assert service_locator._event_manager_was_retrieved is False
6456

6557
return _prepare_test_env
6658

uv.lock

Lines changed: 7 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)