using the new logging system for the tests and they look soo good

This commit is contained in:
shockrah 2021-01-22 22:56:24 -08:00
parent dfd4c18402
commit 70be391701

View File

@ -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)