feat: added tests

This commit is contained in:
ITQ
2025-01-29 20:24:05 +03:00
parent 82a5a50c4b
commit 9d3fae947b
38 changed files with 4743 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
import logging
from collections.abc import MutableMapping
from typing import Any
def pytest_tavern_beta_before_every_request(request_args: MutableMapping):
message = f"Request: {request_args['method']} {request_args['url']}"
params = request_args.get("params", None)
if params:
message += f"\nQuery parameters: {params}"
message += f"\nRequest body: {request_args.get('json', '<no body>')}"
logging.info(message)
def pytest_tavern_beta_after_every_response(
expected: Any, response: Any
) -> None:
logging.info(f"Response: {response.status_code} {response.text}")