From c280807aebde553fc4a7f41d6b5ef77021c230ae Mon Sep 17 00:00:00 2001 From: Piotr Gawron <piotr.gawron@uni.lu> Date: Thu, 23 Mar 2017 17:09:36 +0100 Subject: [PATCH] String changed to const --- smash/web/tests/test_AppointmentEditForm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smash/web/tests/test_AppointmentEditForm.py b/smash/web/tests/test_AppointmentEditForm.py index d81a31bb..eba5c6d0 100644 --- a/smash/web/tests/test_AppointmentEditForm.py +++ b/smash/web/tests/test_AppointmentEditForm.py @@ -3,7 +3,7 @@ from django.test import TestCase from functions import get_test_location, create_user, create_visit, create_location from web.forms import AppointmentAddForm from web.forms import AppointmentEditForm -from web.models import Worker +from web.models import Appointment, Worker class AppointmentEditFormTests(TestCase): @@ -23,7 +23,7 @@ class AppointmentEditFormTests(TestCase): 'datetime_when': "2020-01-01", } self.sample_data_with_status = self.sample_data - self.sample_data_with_status['status'] = 'NO_SHOW' + self.sample_data_with_status['status'] = Appointment.APPOINTMENT_STATUS_NO_SHOW add_form = AppointmentAddForm(user=self.user, data=self.sample_data) add_form.instance.visit_id = self.visit.id self.appointment = add_form.save() -- GitLab