mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-09 17:45:41 -04:00
fix filter_bys
This commit is contained in:
@@ -38,7 +38,9 @@ def test_save_service_inbound_api(sample_service):
|
||||
|
||||
versioned = (
|
||||
db.session.execute(
|
||||
select(ServiceInboundApi.get_history_model()).filter_by(id=inbound_api.id)
|
||||
select(ServiceInboundApi.get_history_model()).where(
|
||||
ServiceInboundApi.get_history_model().id == inbound_api.id
|
||||
)
|
||||
)
|
||||
.scalars()
|
||||
.one()
|
||||
@@ -95,8 +97,8 @@ def test_update_service_inbound_api(sample_service):
|
||||
|
||||
versioned_results = (
|
||||
db.session.execute(
|
||||
select(ServiceInboundApi.get_history_model()).filter_by(
|
||||
id=saved_inbound_api.id
|
||||
select(ServiceInboundApi.get_history_model()).where(
|
||||
ServiceInboundApi.get_history_model().id == saved_inbound_api.id
|
||||
)
|
||||
)
|
||||
.scalars()
|
||||
|
||||
Reference in New Issue
Block a user