Skip to content

Commit c3eca1d

Browse files
author
Nikita Filonov
committed
.github/workflows/test.yml
1 parent cab7d0c commit c3eca1d

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
path: allure-results
3939

4040
publish-report:
41+
if: always()
4142
needs: [ run-tests ]
4243
runs-on: ubuntu-latest
4344

clients/event_hooks.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,10 @@
66

77

88
def log_request_event_hook(request: Request):
9-
"""
10-
Логирует информацию об отправленном HTTP-запросе.
11-
12-
:param request: Объект запроса HTTPX.
13-
"""
149
logger.info(f'Make {request.method} request to {request.url}')
1510

1611

1712
def log_response_event_hook(response: Response):
18-
"""
19-
Логирует информацию о полученном HTTP-ответе.
20-
21-
:param response: Объект ответа HTTPX.
22-
"""
2313
logger.info(
2414
f"Got response {response.status_code} {response.reason_phrase} from {response.url}"
2515
)

0 commit comments

Comments
 (0)