From 70be391701fef3b07f885f957b3f713c6d14396e Mon Sep 17 00:00:00 2001 From: shockrah Date: Fri, 22 Jan 2021 22:56:24 -0800 Subject: [PATCH] using the new logging system for the tests and they look soo good --- server-api/client-tests/client.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server-api/client-tests/client.py b/server-api/client-tests/client.py index 3635c28..ffb060a 100644 --- a/server-api/client-tests/client.py +++ b/server-api/client-tests/client.py @@ -62,6 +62,12 @@ class Worker: # if its not a string we don't add anything in return opts + def logs(self): + ids = sorted(self.requests.keys()) # shared keys in requests/responses + for key in ids: + self.responses[key].log() + + def request(self, method: str, path: str, auth: str, opts: dict, expectation: int): assert(path[0] == '/') @@ -120,6 +126,7 @@ def run(worker: Worker): worker.request(method, path, auth, opts, hope) + worker.logs() if __name__ == '__main__': worker = Worker('http://localhost:8888', create_admin=True)