Skip to content

Commit

Permalink
style: e2e logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mickol34 committed Oct 17, 2024
1 parent e5fd1a2 commit 173fa53
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/e2etests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import requests
import random
import os
import pprint

from ..lib.ursadb import UrsaDb # noqa

Expand Down Expand Up @@ -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"]
Expand All @@ -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)
Expand Down

0 comments on commit 173fa53

Please sign in to comment.