Commit 3c30524c authored by Sebastian Miller's avatar Sebastian Miller
Browse files

fixed requests test

parent 199eacd9
......@@ -145,7 +145,11 @@ class TestRequests:
self.conn.send(MQ_TOPIC, TRAIN_CPU_MSG)
def test_response_untrained(self):
r = self.post_request()
r = self.post_request(METRIC1)
print(f"Status Code: {r.status_code}, Response: {r.json()}")
print(r.json())
assert r.status_code == NO_MODEL_CODE
r = self.post_request(METRIC2)
print(f"Status Code: {r.status_code}, Response: {r.json()}")
print(r.json())
assert r.status_code == NO_MODEL_CODE
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment