Skip to content

Add missing advanced mode to request method #1068

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion atlassian/rest_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ def request(
files=None,
trailing=None,
absolute=False,
advanced_mode=False,
):
"""

Expand All @@ -203,6 +204,7 @@ def request(
:param files:
:param trailing: bool
:param absolute: bool, OPTIONAL: Do not prefix url, url is absolute
:param advanced_mode: bool, OPTIONAL: Return the raw response
:return:
"""
url = self.url_joiner(None if absolute else self.url, path, trailing)
Expand Down Expand Up @@ -237,7 +239,7 @@ def request(

log.debug("HTTP: {} {} -> {} {}".format(method, path, response.status_code, response.reason))
log.debug("HTTP: Response text -> {}".format(response.text))
if self.advanced_mode:
if self.advanced_mode or advanced_mode:
return response

self.raise_for_status(response)
Expand Down Expand Up @@ -277,6 +279,7 @@ def get(
headers=headers,
trailing=trailing,
absolute=absolute,
advanced_mode=advanced_mode,
)
if self.advanced_mode or advanced_mode:
return response
Expand Down