Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvw committed Dec 5, 2023
1 parent b456eea commit 8c8e7ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions edc_action_item/tests/tests/test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def test_create_next_parent_reference_model_instance(self):

def test_reference_as_crf(self):
self.enroll()
appointment = Appointment.objects.all().order_by("timepoint")[0]
appointment = Appointment.objects.all().order_by("timepoint", "visit_code_sequence")[0]
subject_visit = django_apps.get_model(
"edc_visit_tracking.subjectvisit"
).objects.create(appointment=appointment, reason=SCHEDULED)
Expand All @@ -162,7 +162,7 @@ def test_reference_as_crf(self):

def test_reference_as_crf_create_next_model_instance(self):
subject_identifier = self.enroll()
appointment = Appointment.objects.all().order_by("timepoint")[0]
appointment = Appointment.objects.all().order_by("timepoint", "visit_code_sequence")[0]
subject_visit = django_apps.get_model(
"edc_visit_tracking.subjectvisit"
).objects.create(appointment=appointment, reason=SCHEDULED)
Expand Down

0 comments on commit 8c8e7ae

Please sign in to comment.