mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 06:21:50 -05:00
try to fix test code
This commit is contained in:
@@ -747,7 +747,7 @@ def test_update_service_creates_a_history_record_with_current_data(notify_db_ses
|
||||
|
||||
assert service_from_db.version == 2
|
||||
stmt = select(Service.get_history_model()).filter_by(name="service_name")
|
||||
assert db.session.execute(stmt).one().version == 1
|
||||
assert db.session.execute(stmt).scalars().one().version == 1
|
||||
stmt = select(Service.get_history_model()).filter_by(name="updated_service_name")
|
||||
assert db.session.execute(stmt).one().version == 2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user