V
Size: a a a
V
ИС
custom_logger = logging.getLogger("requests.packages.urllib3")
custom_logger.setLevel(logging.DEBUG)
custom_logger.propagate = True
V
def log_request(func):
def display(**kwargs):
logging.info("тело запроса {}".format(**kwargs))
logging.info("тело ответа {}".format(func(**kwargs)))
return display
S
V
V
S
@decorator
def func():
pass
@decorator()
def func():
pass
S
V
MA
V
V
MA
S
pytest.mark.parametrize
S
O
V
pytest.mark.parametrize
V
S
S