コード例 #1
0
 def setUp(self):
     super().setUp()
     self.patient = PatientFactory()
     self.doctor = DoctorFactory()
     self.appointment = AppointmentFactory(doctor=self.doctor,
                                           patient=self.patient)
     self.appointment_1 = AppointmentFactory(doctor=self.doctor,
                                             patient=self.patient)
コード例 #2
0
 def setUp(self):
     self.doctor = DoctorFactory()
コード例 #3
0
 def setUp(self):
     super().setUp()
     self.doctor_1 = DoctorFactory()
     self.doctor_2 = DoctorFactory()
     self.doctor_3 = DoctorFactory()
コード例 #4
0
 def setUp(self):
     self.doctor = DoctorFactory()
     self.patient = PatientFactory()
     self.appointment = AppointmentFactory(doctor=self.doctor,
                                           patient=self.patient)
     self.app_admin = AppointmentAdmin(Appointment, AdminSite())
コード例 #5
0
 def setUp(self) -> None:
     super().setUp()
     self.doctor = DoctorFactory()
     self.patient = PatientFactory()