Skip to content

Commit

Permalink
Fix delete rerun doesn't actually work (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
omar-selo committed Jun 5, 2024
1 parent 76c0150 commit f69008a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/test_observer/controllers/test_executions/reruns.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,12 @@ def get_rerun_requests(db: Session = Depends(get_db)):

@router.delete("/reruns")
def delete_rerun_requests(request: DeleteReruns, db: Session = Depends(get_db)):
return db.execute(
db.execute(
delete(TestExecutionRerunRequest).where(
TestExecutionRerunRequest.test_execution_id.in_(request.test_execution_ids)
)
)
db.commit()


class _TestExecutionNotFound(ValueError):
Expand Down

0 comments on commit f69008a

Please sign in to comment.