diff --git a/smash/web/tests/test_process_file.py b/smash/web/tests/test_process_file.py index 7d00165404acd575efa951f4b48f333ad7c2817a..f46bcac4266a002dcd993cf59d73cb0fb78c82c8 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 a5a8ad12718bdde423fd09cfad008d35bf05e592..bcba4e877e047d7f2b5a758ba0854a54807c898b 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"))}))