Spaces:
Runtime error
Runtime error
File size: 549 Bytes
40aba81 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
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
} |