Skip to content
Snippets Groups Projects
Commit ea5b888e authored by Christopher Randolph Rhodes's avatar Christopher Randolph Rhodes
Browse files

Repair automatic session restart, which was causing test client problems;...

Repair automatic session restart, which was causing test client problems; corrected return value of model query
parent 3daaf0ba
No related branches found
No related tags found
No related merge requests found
......@@ -19,8 +19,8 @@ class TestServerBaseClass(unittest.TestCase):
daemon=True
)
self.uri = f'http://{host}:{port}/'
requests.get(self.uri + 'restart')
self.server_process.start()
requests.get(self.uri + 'restart')
def copy_input_file_to_server(self):
from shutil import copyfile
......@@ -65,7 +65,7 @@ class TestApiFromAutomatedClient(TestServerBaseClass):
resp_load = requests.put(
self.uri + f'models/dummy/load',
)
model_id = resp_load.json()['model_id']
model_id = list(resp_load.json()['model_id'].keys())[0]
self.assertEqual(resp_load.status_code, 200, resp_load.json())
resp_list = requests.get(self.uri + 'models')
self.assertEqual(resp_list.status_code, 200)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment