@@ -134,7 +134,7 @@ def test_unsupported_task(client: TestClient, test_model_service_ip: str):
134134def test_process (client : TestClient , config : Config , test_model_service_ip : str ):
135135 response = client .post (
136136 f"/models/{ test_model_service_ip } /process" ,
137- data = "Spinal stenosis " ,
137+ data = "Kidney failure " ,
138138 headers = {"Content-Type" : "text/plain" },
139139 )
140140 assert response .status_code == 200
@@ -153,7 +153,7 @@ def test_process(client: TestClient, config: Config, test_model_service_ip: str)
153153 task_payload_key = f"{ task_uuid } _payload.txt"
154154 tom : ObjectStoreManager = config .task_object_store_manager
155155 payload = tom .get_object (task_payload_key )
156- assert payload == b"Spinal stenosis "
156+ assert payload == b"Kidney failure "
157157
158158 # Verify that the queue is empty after the task is processed
159159 qm : QueueManager = config .queue_manager
@@ -171,7 +171,7 @@ def test_process(client: TestClient, config: Config, test_model_service_ip: str)
171171 except json .JSONDecodeError as e :
172172 pytest .fail (f"Failed to parse the result as JSON: { result } , { e } " )
173173
174- assert result_json ["text" ] == "Spinal stenosis "
174+ assert result_json ["text" ] == "Kidney failure "
175175 assert len (result_json ["annotations" ]) == 1
176176
177177 annotation = result_json ["annotations" ][0 ]
@@ -188,7 +188,7 @@ def test_process(client: TestClient, config: Config, test_model_service_ip: str)
188188 "athena_ids" ,
189189 ]
190190 )
191- assert annotation ["label_name" ] == "Spinal Stenosis "
191+ assert annotation ["label_name" ] == "Loss Of Kidney Function "
192192
193193 # Verify that the above match the information exposed through the user-facing API
194194 get_response = client .get (f"/tasks/{ task_uuid } " , params = {"detail" : True , "download_url" : True })
0 commit comments