using the new logging system for the tests and they look soo good
This commit is contained in:
parent
dfd4c18402
commit
70be391701
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user