Spaces:
Runtime error
Runtime error
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 | |
} |