From 173fa533db33f29fb2ae3d18488709fef21fa39d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Kolankiewicz?= Date: Tue, 15 Oct 2024 12:04:25 +0200 Subject: [PATCH] style: e2e logs --- src/e2etests/test_api.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/e2etests/test_api.py b/src/e2etests/test_api.py index 6f49cf99..a00632da 100644 --- a/src/e2etests/test_api.py +++ b/src/e2etests/test_api.py @@ -9,6 +9,7 @@ import requests import random import os +import pprint from ..lib.ursadb import UrsaDb # noqa @@ -261,7 +262,7 @@ def request_query(log, i, taints=[]): "taints": taints, }, ) - log.info("API response: %s", res.json()) + log.info("API response: %s\n", pprint.pformat(res.json())) res.raise_for_status() query_hash = res.json()["query_hash"] @@ -270,7 +271,7 @@ def request_query(log, i, taints=[]): res = requests.get( f"http://web:5000/api/matches/{query_hash}?offset=0&limit=50" ) - log.info("API response: %s", res.json()) + log.info("API response: %s\n", pprint.pformat(res.json())) if res.json()["job"]["status"] == "done": break time.sleep(1)