Skip to content

Commit aa3b9ea

Browse files
PijukatelvdusekCopilot
authored
Apply suggestions from code review
Co-authored-by: Vlada Dusek <v.dusek96@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent ec6e071 commit aa3b9ea

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

src/apify/storage_clients/_apify/_alias_resolving.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ async def register_aliases(cls, configuration: Configuration) -> None:
284284
):
285285
for storage_alias, storage_id in mapping.items():
286286
configuration_mapping[
287-
cls( # noqa: SLF001# It is ok in own classmethod.
287+
cls( # noqa: SLF001 # It is ok in own classmethod.
288288
storage_type=storage_type,
289289
alias='__default__' if storage_alias == 'default' else storage_alias,
290290
configuration=configuration,

tests/e2e/test_schema_storages/actor_source/actor.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@
33
"version": "0.0",
44
"storages": {
55
"datasets": {
6-
"default": {
6+
"default": {
77
"actorSpecification": 1,
8-
"fields": {
9-
"properties": {
10-
"id": { "type": "string" }
11-
}
12-
}
8+
"fields": {
9+
"properties": {
10+
"id": { "type": "string" }
11+
}
12+
}
1313
},
14-
"custom": {
14+
"custom": {
1515
"actorSpecification": 1,
1616
"fields": {
17-
"properties": {
18-
"id": { "type": "string" }
19-
}
20-
}
17+
"properties": {
18+
"id": { "type": "string" }
19+
}
20+
}
2121
}
2222
}
2323
}

tests/integration/test_storages.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ async def test_actor_storages_alias_resolving(apify_token: str) -> None:
135135

136136
# Actor storages
137137
datasets = {'default': 'default_dataset_id', 'custom': 'custom_dataset_id'}
138-
request_queues = {'default': 'default_dataset_id', 'custom': 'custom_dataset_id'}
139-
key_value_stores = {'default': 'default_dataset_id', 'custom': 'custom_dataset_id'}
138+
request_queues = {'default': 'default_request_queue_id', 'custom': 'custom_request_queue_id'}
139+
key_value_stores = {'default': 'default_key_value_store_id', 'custom': 'custom_key_value_store_id'}
140140

141141
# Set up the configuration and storage client for the test
142142
configuration = Configuration(

0 commit comments

Comments
 (0)