Skip to content
Snippets Groups Projects
Commit c280807a authored by Piotr Gawron's avatar Piotr Gawron
Browse files

String changed to const

parent d1c934aa
No related branches found
No related tags found
1 merge request!23display appointment status as select field - #69
Pipeline #
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment