更新
This commit is contained in:
@@ -2565,11 +2565,14 @@ def test_reception_ai_analysis_discards_late_qwen_and_openai_results(
|
||||
application.processEvents()
|
||||
|
||||
|
||||
@pytest.mark.parametrize("mode", [None, "text"])
|
||||
def test_video_payload_keeps_three_identifiers_distinct(
|
||||
application: QApplication,
|
||||
immediate_async: None,
|
||||
mode: str | None,
|
||||
) -> None:
|
||||
detail = _detail(41, name="视频患者")
|
||||
detail["appointment"]["appointment_type"] = mode
|
||||
|
||||
class Repository:
|
||||
def get_reception(self, appointment_id: int) -> dict[str, Any]:
|
||||
@@ -2586,6 +2589,7 @@ def test_video_payload_keeps_three_identifiers_distinct(
|
||||
{
|
||||
"source": "reception",
|
||||
"appointment_id": 41,
|
||||
"appointment_type": mode,
|
||||
"patient_id": 141,
|
||||
"diagnosis_id": 241,
|
||||
"patient_name": "视频患者",
|
||||
@@ -2593,6 +2597,7 @@ def test_video_payload_keeps_three_identifiers_distinct(
|
||||
"record": detail["appointment"],
|
||||
}
|
||||
]
|
||||
assert page.video_button.text() == ("图文沟通" if mode == "text" else "IM 问诊")
|
||||
page.close()
|
||||
application.processEvents()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user