Skip to content

Commit

Permalink
formatting change
Browse files Browse the repository at this point in the history
  • Loading branch information
vimayya committed Jan 7, 2025
1 parent 920b79b commit 3f0dfa0
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/edfi-paging-test/edfi_paging_test/helpers/api_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,18 @@ def get_resource_paths(api_base_url: str, verify_cert: bool = True) -> List[str]
str, Dict[str, str]
] = get_resource_metadata_response(api_base_url, verify_cert)
all_paths: List[str] = list(resource_metadata_response["paths"].keys())
# filter out paths that are for get by id, deletes or keyChanges
return list(filter(lambda p: "{id}" not in p and "/deletes" not in p and "/keyChanges" not in p and "/partitions" not in p, all_paths))
# filter out paths that are for get by id, deletes, keyChanges or partitions
return list(
filter(
lambda p: (
"{id}" not in p
and "/deletes" not in p
and "/keyChanges" not in p
and "/partitions" not in p
)
, all_paths
)
)


def normalize_resource_paths(resource_paths: List[str]) -> List[str]:
Expand Down

0 comments on commit 3f0dfa0

Please sign in to comment.