Skip to content

Commit

Permalink
Confluence: Fix black formatting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Baarsgaard committed Sep 30, 2024
1 parent 7a6a4fb commit b68190e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions atlassian/confluence.py
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ def get_all_pages_by_space_ids_confluence_cloud(
path = "/api/v2/pages"
params = {}

Check warning on line 721 in atlassian/confluence.py

View check run for this annotation

Codecov / codecov/patch

atlassian/confluence.py#L720-L721

Added lines #L720 - L721 were not covered by tests
if space_ids:
params["space-id"] = ','.join(space_ids)
params["space-id"] = ",".join(space_ids)

Check warning on line 723 in atlassian/confluence.py

View check run for this annotation

Codecov / codecov/patch

atlassian/confluence.py#L723

Added line #L723 was not covered by tests
if batch_size:
params["limit"] = batch_size

Check warning on line 725 in atlassian/confluence.py

View check run for this annotation

Codecov / codecov/patch

atlassian/confluence.py#L725

Added line #L725 was not covered by tests
if sort:
Expand All @@ -741,8 +741,8 @@ def get_all_pages_by_space_ids_confluence_cloud(
_all_pages = _all_pages + pages

Check warning on line 741 in atlassian/confluence.py

View check run for this annotation

Codecov / codecov/patch

atlassian/confluence.py#L740-L741

Added lines #L740 - L741 were not covered by tests

links = response.get("_links")

Check warning on line 743 in atlassian/confluence.py

View check run for this annotation

Codecov / codecov/patch

atlassian/confluence.py#L743

Added line #L743 was not covered by tests
if links is not None and 'next' in links:
path = response['_links']['next'].removeprefix('/wiki/')
if links is not None and "next" in links:
path = response["_links"]["next"].removeprefix("/wiki/")
params = {}

Check warning on line 746 in atlassian/confluence.py

View check run for this annotation

Codecov / codecov/patch

atlassian/confluence.py#L745-L746

Added lines #L745 - L746 were not covered by tests
else:
break
Expand All @@ -751,7 +751,8 @@ def get_all_pages_by_space_ids_confluence_cloud(
raise ApiValueError(

Check warning on line 751 in atlassian/confluence.py

View check run for this annotation

Codecov / codecov/patch

atlassian/confluence.py#L751

Added line #L751 was not covered by tests
"The configured params cannot be interpreted by Confluence"
"Check the api documentation for valid values for status, expand, and sort params",
reason=e,)
reason=e,
)
if e.response.status_code == 401:
raise HTTPError("Unauthorized (401)", response=response)
raise

Check warning on line 758 in atlassian/confluence.py

View check run for this annotation

Codecov / codecov/patch

atlassian/confluence.py#L757-L758

Added lines #L757 - L758 were not covered by tests
Expand Down

0 comments on commit b68190e

Please sign in to comment.