Skip to content

Commit dadf91d

Browse files
committed
fixup! Eliminate uses of requests library in service/test_app_logging.py (#7633)
1 parent 9fb2afc commit dadf91d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

test/service/test_app_logging.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,10 @@ def filter_body(organ: str) -> JSON:
8383
'content-type': 'application/json',
8484
**request_headers
8585
}
86-
response = self.http().request('GET', str(url),
87-
json=body_json,
88-
headers=request_headers)
86+
http = self.http_client()
87+
response = http.request('GET', str(url),
88+
json=body_json,
89+
headers=request_headers)
8990
logs = [(r.levelno, r.getMessage()) for r in logs.records]
9091
body_log_level, body_log_message = logs.pop() # asserted separately
9192
request_headers = {

0 commit comments

Comments
 (0)