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

unit test for checking ordering by visit dates

parent 2c2179b5
No related branches found
No related tags found
1 merge request!100Test coverage unit tests
......@@ -410,3 +410,14 @@ class TestApi(TestCase):
self.check_subject_filtered([["visit_1", "DONE"], ["visit_2", "UPCOMING"]], [subject])
self.check_subject_filtered([["visit_1", "UPCOMING"], ["visit_2", "DONE"]], [])
def test_subjects_ordered_by_visit_1(self):
subject = self.study_subject
subject2 = create_study_subject(2)
visit = create_visit(subject)
appointment = create_appointment(visit)
appointment.status = Appointment.APPOINTMENT_STATUS_FINISHED
appointment.save()
self.check_subject_ordered("visit_1", [subject, subject2])
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