|
1 | 1 | import pytest |
2 | 2 |
|
| 3 | +from manage_breast_screening.mammograms.services.appointment_services import StepNames |
3 | 4 | from manage_breast_screening.participants.models.appointment import ( |
4 | 5 | AppointmentStatusNames, |
5 | 6 | ) |
@@ -29,3 +30,57 @@ def in_progress_appointment(clinical_user_client): |
29 | 30 | reinvite=False, |
30 | 31 | clinic_slot__clinic__setting__provider=clinical_user_client.current_provider, |
31 | 32 | ) |
| 33 | + |
| 34 | + |
| 35 | +@pytest.fixture |
| 36 | +def confirmed_identity_appointment(clinical_user_client): |
| 37 | + appointment = AppointmentFactory.create( |
| 38 | + current_status=AppointmentStatusNames.IN_PROGRESS, |
| 39 | + current_status__created_by=clinical_user_client.user, |
| 40 | + clinic_slot__clinic__setting__provider=clinical_user_client.current_provider, |
| 41 | + ) |
| 42 | + appointment.completed_workflow_steps.create( |
| 43 | + step_name=StepNames.CONFIRM_IDENTITY, |
| 44 | + created_by=clinical_user_client.user, |
| 45 | + ) |
| 46 | + return appointment |
| 47 | + |
| 48 | + |
| 49 | +@pytest.fixture |
| 50 | +def reviewed_appointment(clinical_user_client): |
| 51 | + appointment = AppointmentFactory.create( |
| 52 | + current_status=AppointmentStatusNames.IN_PROGRESS, |
| 53 | + current_status__created_by=clinical_user_client.user, |
| 54 | + clinic_slot__clinic__setting__provider=clinical_user_client.current_provider, |
| 55 | + ) |
| 56 | + appointment.completed_workflow_steps.create( |
| 57 | + step_name=StepNames.CONFIRM_IDENTITY, |
| 58 | + created_by=clinical_user_client.user, |
| 59 | + ) |
| 60 | + appointment.completed_workflow_steps.create( |
| 61 | + step_name=StepNames.REVIEW_MEDICAL_INFORMATION, |
| 62 | + created_by=clinical_user_client.user, |
| 63 | + ) |
| 64 | + return appointment |
| 65 | + |
| 66 | + |
| 67 | +@pytest.fixture |
| 68 | +def taken_images_appointment(clinical_user_client): |
| 69 | + appointment = AppointmentFactory.create( |
| 70 | + current_status=AppointmentStatusNames.IN_PROGRESS, |
| 71 | + current_status__created_by=clinical_user_client.user, |
| 72 | + clinic_slot__clinic__setting__provider=clinical_user_client.current_provider, |
| 73 | + ) |
| 74 | + appointment.completed_workflow_steps.create( |
| 75 | + step_name=StepNames.CONFIRM_IDENTITY, |
| 76 | + created_by=clinical_user_client.user, |
| 77 | + ) |
| 78 | + appointment.completed_workflow_steps.create( |
| 79 | + step_name=StepNames.REVIEW_MEDICAL_INFORMATION, |
| 80 | + created_by=clinical_user_client.user, |
| 81 | + ) |
| 82 | + appointment.completed_workflow_steps.create( |
| 83 | + step_name=StepNames.TAKE_IMAGES, |
| 84 | + created_by=clinical_user_client.user, |
| 85 | + ) |
| 86 | + return appointment |
0 commit comments