diff --git a/smash/web/tests/test_AppointmentEditForm.py b/smash/web/tests/test_AppointmentEditForm.py
index d81a31bb363ce921b68dd6161fe45d37fe61b6a7..eba5c6d0970e19908dd90f34a5e224d3153f34e8 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()