tests: add tests to chat memory component (#3039)
* ♻️ (crud.py): refactor delete_vertex_builds_by_flow_id function to correctly delete vertex builds by flow_id using relationship attribute instead of column comparison. * 📝 (generalBugs-shard-0.spec.ts): Remove unnecessary test case and add new test case for chat messages clearing functionality ✨ (generalBugs-shard-8.spec.ts): Add new test case for interacting with API request ✨ (generalBugs-shard-9.spec.ts): Add new test case for testing chat memory functionality
This commit is contained in:
parent
58b51d1c56
commit
1710bca2b6
4 changed files with 226 additions and 41 deletions
|
|
@ -32,5 +32,5 @@ def log_vertex_build(db: Session, vertex_build: VertexBuildBase) -> VertexBuildT
|
|||
|
||||
|
||||
def delete_vertex_builds_by_flow_id(db: Session, flow_id: UUID) -> None:
|
||||
delete(VertexBuildTable).where(col(VertexBuildTable.flow_id == flow_id))
|
||||
delete(VertexBuildTable).where(VertexBuildTable.flow.has(id=flow_id)) # type: ignore
|
||||
db.commit()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue