diff --git a/tests/app/dao/test_inbound_numbers_dao.py b/tests/app/dao/test_inbound_numbers_dao.py index ade1f7f94..efb1e376c 100644 --- a/tests/app/dao/test_inbound_numbers_dao.py +++ b/tests/app/dao/test_inbound_numbers_dao.py @@ -38,7 +38,7 @@ def test_set_service_id_on_inbound_number(notify_db_session, sample_inbound_numb dao_set_inbound_number_to_service(service.id, numbers[0]) stmt = select(InboundNumber).filter(InboundNumber.service_id == service.id) - res = db.session.execute(stmt).all() + res = db.session.execute(stmt).scalars().all() assert len(res) == 1 assert res[0].service_id == service.id