try to fix test code

This commit is contained in:
Kenneth Kehl
2024-10-10 14:03:11 -07:00
parent 5c818b520c
commit 58d9b2d63e
2 changed files with 7 additions and 4 deletions

View File

@@ -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"
}

View File

@@ -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):