This commit is contained in:
Your Name
2026-09-09 15:47:48 +08:00
parent bd5d5c5f08
commit cb10e75ead
98 changed files with 7031 additions and 804 deletions
+4 -1
View File
@@ -279,8 +279,10 @@ def test_workspace_workers_use_gui_thread_query_snapshots(
application.processEvents()
@pytest.mark.parametrize("mode", ["video", "text"])
def test_appointment_form_uses_rosters_slots_and_diagnosis_id_contract(
application: QApplication,
mode: str,
immediate_async: None,
) -> None:
tomorrow = QDate.currentDate().addDays(1).toString("yyyy-MM-dd")
@@ -317,6 +319,7 @@ def test_appointment_form_uses_rosters_slots_and_diagnosis_id_contract(
"doctor_id": 77,
}
dialog = _AppointmentDialog(row, repository=Repository())
dialog.appointment_type.setCurrentIndex(dialog.appointment_type.findData(mode))
application.processEvents()
dialog.channel_source.setCurrentIndex(dialog.channel_source.findData("online"))
dialog.slot_combo.setCurrentIndex(dialog.slot_combo.findData("09:30-10:00"))
@@ -339,7 +342,7 @@ def test_appointment_form_uses_rosters_slots_and_diagnosis_id_contract(
"appointment_date": tomorrow,
"appointment_time": "09:30-10:00",
"period": "all",
"appointment_type": "video",
"appointment_type": mode,
"remark": "复诊预约",
"channel_source": "online",
"channel_source_detail": "",