MCPcopy Create free account
hub / github.com/chenfei-wu/TaskMatrix / test_extend_workflow

Function test_extend_workflow

LowCodeLLM/src/test/test_execute.py:10–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8sys.path.append(os.getcwd())
9
10def 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

Callers

nothing calls this directly

Calls 2

lowCodeLLMClass · 0.90
executeMethod · 0.45

Tested by

no test coverage detected