From b56825a680080c00f1eb6925883abfe14c710e0a Mon Sep 17 00:00:00 2001 From: Richard Chapman Date: Thu, 16 Nov 2017 15:43:21 +0000 Subject: [PATCH] Updated Tests to use a variety of templates All of the tests defaulted to sms templates, updated a few to use a variety of templates types so all types are tested. --- tests/app/dao/test_services_dao.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/app/dao/test_services_dao.py b/tests/app/dao/test_services_dao.py index 3f9418a78..05c564c02 100644 --- a/tests/app/dao/test_services_dao.py +++ b/tests/app/dao/test_services_dao.py @@ -1189,9 +1189,9 @@ def test_dao_fetch_monthly_historical_usage_by_template_for_service_does_add_old status='delivered' ) - template_one = create_sample_template(notify_db, notify_db_session, template_name='1') - template_two = create_sample_template(notify_db, notify_db_session, template_name='2') - template_three = create_sample_template(notify_db, notify_db_session, template_name='3') + template_one = create_sample_template(notify_db, notify_db_session, template_name='1', template_type='email') + template_two = create_sample_template(notify_db, notify_db_session, template_name='2', template_type='sms') + template_three = create_sample_template(notify_db, notify_db_session, template_name='3', template_type='letter') date = datetime.now() day = date.day @@ -1254,9 +1254,9 @@ def test_dao_fetch_monthly_historical_usage_by_template_for_service_get_this_yea status='delivered' ) - template_one = create_sample_template(notify_db, notify_db_session, template_name='1') - template_two = create_sample_template(notify_db, notify_db_session, template_name='2') - template_three = create_sample_template(notify_db, notify_db_session, template_name='3') + template_one = create_sample_template(notify_db, notify_db_session, template_name='1', template_type='email') + template_two = create_sample_template(notify_db, notify_db_session, template_name='2', template_type='sms') + template_three = create_sample_template(notify_db, notify_db_session, template_name='3', template_type='letter') date = datetime.now() day = date.day