Skip to content

Commit 9074267

Browse files
committed
Patch
1 parent f54e35b commit 9074267

File tree

4 files changed

+2
-21
lines changed

4 files changed

+2
-21
lines changed

synapseclient/api/team_services.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,6 @@ async def post_team_list(
2626
2727
Returns:
2828
List of dictionaries representing <https://rest-docs.synapse.org/rest/org/sagebionetworks/repo/model/Team.html>
29-
30-
Example: Get teams by their IDs
31-
Retrieve specific teams by providing their IDs.
32-
33-
```python
34-
35-
```
3629
"""
3730
from synapseclient import Synapse
3831

synapseclient/api/user_services.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,6 @@ async def get_user_group_headers_batch(
2626
Returns:
2727
List representing "children" in
2828
<https://rest-docs.synapse.org/rest/org/sagebionetworks/repo/model/UserGroupHeaderResponsePage.html>
29-
30-
Example: Get user group headers by their IDs
31-
Retrieve specific user/group headers by providing their IDs.
32-
33-
```python
34-
35-
```
3629
"""
3730
from synapseclient import Synapse
3831

synapseclient/models/mixins/access_control.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,6 @@ async def _process_folder_permission_deletion(
710710
Raises:
711711
Exception: For any errors that may occur during processing, which are caught and logged.
712712
"""
713-
# For non-recursive processing, track entities with benefactor_tracker
714713
if not recursive and benefactor_tracker and not dry_run:
715714
track_tasks = [
716715
benefactor_tracker.track_entity_benefactor([folder.id], client)
@@ -1530,10 +1529,6 @@ def _normalize_entity_type(self, entity_type: str) -> str:
15301529
entity_type = entity_type.split(".")[-1]
15311530
if entity_type == "FileEntity":
15321531
return "File"
1533-
elif entity_type == "Folder":
1534-
return "Folder"
1535-
elif entity_type == "Project":
1536-
return "Project"
15371532

15381533
return entity_type
15391534

tests/unit/synapseclient/models/unit_test_permissions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ async def test_track_entities_parallel(self):
578578
side_effect=benefactor_responses,
579579
):
580580
# WHEN tracking multiple entities in parallel
581-
tracker.track_entity_benefactor(entity_ids, mock_client)
581+
await tracker.track_entity_benefactor(entity_ids, mock_client)
582582

583583
# THEN all entities should be tracked
584584
assert len(tracker.entity_benefactors) == 3
@@ -603,7 +603,7 @@ async def test_track_entities_parallel_skip_processed(self):
603603
return_value=MagicMock(id="syn999"),
604604
) as mock_get_benefactor:
605605
# WHEN tracking entities
606-
tracker.track_entity_benefactor(entity_ids, mock_client)
606+
await tracker.track_entity_benefactor(entity_ids, mock_client)
607607

608608
# THEN only unprocessed entity should be fetched
609609
mock_get_benefactor.assert_called_once()

0 commit comments

Comments
 (0)