diff --git a/tests/app/dao/test_inbound_numbers_dao.py b/tests/app/dao/test_inbound_numbers_dao.py index ed4b22827..264c17dc4 100644 --- a/tests/app/dao/test_inbound_numbers_dao.py +++ b/tests/app/dao/test_inbound_numbers_dao.py @@ -1,3 +1,5 @@ +import uuid + import pytest from sqlalchemy.exc import IntegrityError @@ -97,3 +99,9 @@ def test_dao_allocate_number_for_service(notify_db_session, sample_service): service = create_service(service_name="Service needs an inbound number") with pytest.raises(Exception): dao_allocate_number_for_service(service_id=service.id, inbound_number_id=inbound_number.id) + + +def test_dao_allocate_number_for_service(notify_db_session, sample_service): + service = create_service(service_name="Service needs an inbound number") + with pytest.raises(Exception): + dao_allocate_number_for_service(service_id=service.id, inbound_number_id=uuid.uuid4())