()
| 8 | sys.path.append(os.getcwd()) |
| 9 | |
| 10 | def test_extend_workflow(): |
| 11 | from lowCodeLLM import lowCodeLLM |
| 12 | cases = json.load(open("./test/testcases/execute_test_cases.json", "r")) |
| 13 | llm = lowCodeLLM(0.5, 0) |
| 14 | for c in cases: |
| 15 | task_prompt = c["task_prompt"] |
| 16 | confirmed_workflow = c["confirmed_workflow"] |
| 17 | history = c["history"] |
| 18 | curr_input = c["curr_input"] |
| 19 | result = llm.execute(task_prompt, confirmed_workflow, history, curr_input) |
| 20 | time.sleep(5) |
| 21 | assert type(result) == str |
| 22 | assert len(result) > 0 |
nothing calls this directly
no test coverage detected