mirror of
https://github.com/GSA/notifications-api.git
synced 2026-07-19 14:04:20 -04:00
try to fix test code
This commit is contained in:
@@ -102,8 +102,11 @@ def _get_first_service():
|
||||
|
||||
|
||||
def _get_service_by_id(service_id):
|
||||
stmt = select(Service).filter(id == service_id)
|
||||
return db.session.execute(stmt).scalars().one()
|
||||
stmt = select(Service).filter(Service.id == service_id)
|
||||
|
||||
service = db.session.execute(stmt).scalars().one()
|
||||
print(f"SERVICE Is {service}")
|
||||
return service
|
||||
|
||||
|
||||
def test_create_service(notify_db_session):
|
||||
|
||||
Reference in New Issue
Block a user