mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 01:41:05 -05:00
Added another test
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
import uuid
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from sqlalchemy.exc import IntegrityError
|
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")
|
service = create_service(service_name="Service needs an inbound number")
|
||||||
with pytest.raises(Exception):
|
with pytest.raises(Exception):
|
||||||
dao_allocate_number_for_service(service_id=service.id, inbound_number_id=inbound_number.id)
|
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())
|
||||||
|
|||||||
Reference in New Issue
Block a user