Ai_software_company / nodes /TestModification.py
MasterPiper2112's picture
Upload 7 files
40aba81 verified
raw
history blame contribute delete
586 Bytes
from roles.SoftwareTestEngineer import SoftwareTestEngineer
class TestModification:
def __init__(self):
self.tester = SoftwareTestEngineer()
def func_coding(self, assistant_role, error_summary, test_reports, codes, language):
"""
Modifies tests based on error summaries.
"""
if assistant_role != "Programmer":
raise ValueError("Invalid role for test modification")
modified_tests = self.tester.modify_tests(error_summary, test_reports, codes, language)
return {
"output": modified_tests
}