Skip to content

Commit

Permalink
Non-functional changes, remove unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
seberm committed Nov 22, 2024
1 parent b83f60c commit c8d1ec9
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions tmt/steps/report/reportportal.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,22 +403,17 @@ def get_defect_type_locator(self, session: requests.Session,
return str(dt_locator)

def rp_api_get(self, session: requests.Session, path: str) -> requests.Response:
response = session.get(url=f"{self.url}/{path}",
headers=self.headers)
response = session.get(url=f"{self.url}/{path}", headers=self.headers)
self.handle_response(response)
return response

def rp_api_post(self, session: requests.Session, path: str, json: JSON) -> requests.Response:
response = session.post(url=f"{self.url}/{path}",
headers=self.headers,
json=json)
response = session.post(url=f"{self.url}/{path}", headers=self.headers, json=json)
self.handle_response(response)
return response

def rp_api_put(self, session: requests.Session, path: str, json: JSON) -> requests.Response:
response = session.put(url=f"{self.url}/{path}",
headers=self.headers,
json=json)
response = session.put(url=f"{self.url}/{path}", headers=self.headers, json=json)
self.handle_response(response)
return response

Expand Down

0 comments on commit c8d1ec9

Please sign in to comment.