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

test for list of approching visits for mail contact added

parent e21479e2
No related branches found
No related tags found
1 merge request!31Tests added
......@@ -47,4 +47,10 @@ class VisitViewTests(TestCase):
response = self.client.get(reverse("web.views.approaching_visits_without_appointments"))
self.assertEqual(response.status_code, 200)
\ No newline at end of file
def test_approaching_visits_for_mail_contact(self):
visit = create_visit()
visit.datetime_begin = get_today_midnight_date() + datetime.timedelta(days=100)
visit.save()
response = self.client.get(reverse("web.views.approaching_visits_for_mail_contact"))
self.assertEqual(response.status_code, 200)
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