mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-23 11:29:50 -05:00
try to fix test code
This commit is contained in:
@@ -239,7 +239,7 @@
|
||||
"filename": "tests/app/dao/test_services_dao.py",
|
||||
"hashed_secret": "5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8",
|
||||
"is_verified": false,
|
||||
"line_number": 282,
|
||||
"line_number": 285,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -384,5 +384,5 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"generated_at": "2024-10-10T20:35:29Z"
|
||||
"generated_at": "2024-10-10T21:03:06Z"
|
||||
}
|
||||
|
||||
@@ -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