From e0fee2afe910b15dd8df6faddf08abe39477e358 Mon Sep 17 00:00:00 2001
From: Piotr Gawron <piotr.gawron@uni.lu>
Date: Tue, 13 Jun 2017 16:49:08 +0200
Subject: [PATCH] fix on tests due to merge

---
 smash/web/tests/test_process_file.py     | 2 +-
 smash/web/tests/test_view_kit_request.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/smash/web/tests/test_process_file.py b/smash/web/tests/test_process_file.py
index 7d001654..f46bcac4 100644
--- a/smash/web/tests/test_process_file.py
+++ b/smash/web/tests/test_process_file.py
@@ -26,7 +26,7 @@ class TestDocxProcessor(TestCase):
             "##ADDRESS2##": "61-234, Poznan",
             "##COUNTRY##": "POLAND",
             "##CONTENT##": "1",
-            "##DATE##": datetime.datetime.now().date().strftime("%A %-d %B %Y"),
+            "##DATE##": datetime.datetime.now().date().strftime("%A %d %B %Y"),
         }
         process_file(template_path, output_path, changes)
         self.assertTrue(os.path.isfile(output_path))
diff --git a/smash/web/tests/test_view_kit_request.py b/smash/web/tests/test_view_kit_request.py
index a5a8ad12..bcba4e87 100644
--- a/smash/web/tests/test_view_kit_request.py
+++ b/smash/web/tests/test_view_kit_request.py
@@ -77,8 +77,8 @@ class ViewFunctionsTests(LoggedInTestCase):
 
         appointment = create_appointment()
         appointment.datetime_when = get_today_midnight_date() + datetime.timedelta(days=2)
-        appointment.appointment_types.add(appointment_type)
         appointment.save()
+        AppointmentTypeLink.objects.create(appointment=appointment, appointment_type=appointment_type)
 
         response = self.client.get(reverse('web.views.kit_requests_send_mail',
                                            kwargs={'start_date': str(get_today_midnight_date().strftime("%Y-%m-%d"))}))
-- 
GitLab