Skip to content

Commit 3671be6

Browse files
committed
Fix tests for failures due to updated GenericResponse
This was introduced by commit d805646. Signed-off-by: Bernd Hufmann <[email protected]>
1 parent d805646 commit 3671be6

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

test_tsp.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -380,13 +380,13 @@ def test_fetch_xy(self, kernel):
380380

381381
response = self.tsp_client.fetch_experiment_outputs(experiment_uuid)
382382
output_id = response.model.descriptors[0].id
383-
status = ResponseStatus.RUNNING.name
384-
while status == ResponseStatus.RUNNING.name:
383+
status = ResponseStatus.RUNNING
384+
while status == ResponseStatus.RUNNING:
385385
time.sleep(1)
386386
response = self.tsp_client.fetch_xy_tree(
387387
experiment_uuid, output_id)
388388
assert response.model is not None
389-
status = response.model.status.upper()
389+
status = response.model.status
390390

391391
params = self.__requested_parameters(response)
392392
response = self.tsp_client.fetch_xy(experiment_uuid, output_id, params)
@@ -407,13 +407,13 @@ def test_fetch_timegraph_tree_complete(self, kernel):
407407

408408
response = self.tsp_client.fetch_experiment_outputs(experiment_uuid)
409409
output_id = response.model.descriptors[0].id
410-
status = ResponseStatus.RUNNING.name
411-
while status == ResponseStatus.RUNNING.name:
410+
status = ResponseStatus.RUNNING
411+
while status == ResponseStatus.RUNNING:
412412
time.sleep(1)
413413
response = self.tsp_client.fetch_timegraph_tree(
414414
experiment_uuid, output_id)
415415
assert response.model is not None
416-
status = response.model.status.upper()
416+
status = response.model.status
417417

418418
params = self.__requested_parameters(response)
419419
response = self.tsp_client.fetch_timegraph_tree(
@@ -432,13 +432,13 @@ def test_fetch_virtual_table_columns(self, ust):
432432
assert response.status_code == 200
433433
experiment_uuid = response.model.UUID
434434

435-
status = ResponseStatus.RUNNING.name
436-
while status == ResponseStatus.RUNNING.name:
435+
status = ResponseStatus.RUNNING
436+
while status == ResponseStatus.RUNNING:
437437
time.sleep(1)
438438
response = self.tsp_client.fetch_virtual_table_columns(
439439
exp_uuid=experiment_uuid, output_id=TABLE_DP_ID)
440440
assert response.model is not None
441-
status = response.model.status.upper()
441+
status = response.model.status
442442

443443
output_id = TABLE_DP_ID
444444
response = self.tsp_client.fetch_virtual_table_columns(exp_uuid=experiment_uuid, output_id=output_id)
@@ -462,13 +462,13 @@ def test_fetch_virtual_table_lines(self, ust):
462462
assert response.status_code == 200
463463
experiment_uuid = response.model.UUID
464464

465-
status = ResponseStatus.RUNNING.name
466-
while status == ResponseStatus.RUNNING.name:
465+
status = ResponseStatus.RUNNING
466+
while status == ResponseStatus.RUNNING:
467467
time.sleep(1)
468468
response = self.tsp_client.fetch_virtual_table_columns(
469469
exp_uuid=experiment_uuid, output_id=TABLE_DP_ID)
470470
assert response.model is not None
471-
status = response.model.status.upper()
471+
status = response.model.status
472472

473473
output_id = TABLE_DP_ID
474474
response = self.tsp_client.fetch_virtual_table_columns(exp_uuid=experiment_uuid, output_id=output_id)

0 commit comments

Comments
 (0)