diff --git a/app/config.py b/app/config.py index 3199fbe93..f5bf46ba3 100644 --- a/app/config.py +++ b/app/config.py @@ -329,6 +329,7 @@ class Development(Config): class Test(Config): + SQLALCHEMY_ECHO = True NOTIFY_EMAIL_DOMAIN = 'test.notify.com' FROM_NUMBER = 'testing' NOTIFY_ENVIRONMENT = 'test' diff --git a/tests/app/delivery/test_send_to_providers.py b/tests/app/delivery/test_send_to_providers.py index 26bb09c7f..5438fa630 100644 --- a/tests/app/delivery/test_send_to_providers.py +++ b/tests/app/delivery/test_send_to_providers.py @@ -827,7 +827,7 @@ def test_send_email_to_provider_should_format_reply_to_email_address( reply_to = create_reply_to_email_for_notification( db_notification.id, sample_service, - "test@test.com\t" + "test@test.com" ) send_to_providers.send_email_to_provider( diff --git a/tests/app/inbound_sms/test_rest.py b/tests/app/inbound_sms/test_rest.py index a0a6d612b..eab9a51fd 100644 --- a/tests/app/inbound_sms/test_rest.py +++ b/tests/app/inbound_sms/test_rest.py @@ -3,7 +3,11 @@ from datetime import datetime import pytest from freezegun import freeze_time -from tests.app.db import create_inbound_sms, create_service, create_service_with_inbound_number +from app.models import ServiceInboundApi, Service +from tests.app.db import ( + create_inbound_sms, create_service, create_service_with_inbound_number, + create_service_inbound_api +) def test_post_to_get_inbound_sms_with_no_params(admin_request, sample_service): @@ -287,3 +291,15 @@ def test_get_inbound_sms_by_id_with_invalid_service_id_returns_404(admin_request inbound_sms_id='2cfbd6a1-1575-4664-8969-f27be0ea40d9', _expected_status=404 ) + + +def test_inbound_api_blah(notify_db_session): + service = create_service() + api = create_service_inbound_api(service=service) + + print("***************") + from_db = Service.query.all()[0] + print("--------------------") + from_db_service = from_db.inbound_api + print("***************") + assert 1 == 1