Skip to content

Commit ab503ed

Browse files
Rohooliomegan-bower4
authored andcommitted
feature/PI-870-sonarcloud_stuff removed ssl yield
1 parent add3469 commit ab503ed

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

src/api/tests/feature_tests/steps/requests.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,6 @@ def _parse_url(base_url: str, endpoint: str) -> str:
3333
return url
3434

3535

36-
# @contextmanager
37-
# def retry_on_ssl_error(sleep_time: int = 3, max_retries=5):
38-
# retries = 0
39-
# while True:
40-
# try:
41-
# yield
42-
# except SSLError:
43-
# if retries == max_retries:
44-
# raise
45-
# time.sleep(sleep_time)
46-
# retries += 1
47-
# finally:
48-
# print("ficl ypu")
49-
# pass
50-
51-
5236
def make_request(
5337
base_url: str,
5438
http_method: str,
@@ -61,11 +45,6 @@ def make_request(
6145
json = body if type(body) is dict else None
6246
data = None if type(body) is dict else body
6347

64-
# with retry_on_ssl_error():
65-
# response = request(
66-
# method=http_method, url=url, headers=headers, json=json, data=data
67-
# )
68-
6948
response = request(
7049
method=http_method, url=url, headers=headers, json=json, data=data
7150
)

0 commit comments

Comments
 (0)