add test cases

This commit is contained in:
zachary62
2024-12-31 02:37:49 +00:00
parent c1ba9dd0d4
commit 643534bc2f
8 changed files with 508 additions and 18 deletions
+1 -1
View File
@@ -162,7 +162,7 @@ most_relevant: filename"""
assert "most_relevant" in result if result["has_relevant"] else True
return result
# handle errors by returning a default response in case of exception after retries
def process_after_fail(self,shared,prep_res,exc):
def exec_fallback(self,shared,prep_res,exc):
# if not overridden, the default is to throw the exception
return {"think":"error finding the file", "has_relevant":False}
def post(self, shared, prep_res, exec_res):