Ai_software_company / nodes /TestErrorSummary.py
MasterPiper2112's picture
Upload 7 files
40aba81 verified
raw
history blame contribute delete
549 Bytes
from roles.SoftwareTestEngineer import SoftwareTestEngineer
class TestErrorSummary:
def __init__(self):
self.tester = SoftwareTestEngineer()
def summarize_errors(self, assistant_role, test_reports, codes, language):
"""
Summarizes errors from test reports.
"""
if assistant_role != "Programmer":
raise ValueError("Invalid role for error summarization")
summary = self.tester.summarize_errors(test_reports, codes, language)
return {
"output": summary
}