autoMate/tests/test_plan_agent.py
2024-01-21 21:06:27 +08:00

15 lines
621 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import unittest
from agent.plan_agent import PlanAgent
from work_principle.okr_principle import OKR_Object
class TestPlanAgent(unittest.TestCase):
def test_aligning(self):
# Create an instance of the PlanAgent class
plan_agent = PlanAgent()
# Create a mock OKR_Object with a raw_user_task
okr_object = OKR_Object("因为想要增加编程效率对比一下copilot和curson谁更好用比较提示词数量、安装易用性给出不少于100字的文")
# Call the aligning method
plan_agent.aligning(okr_object)
if __name__ == '__main__':
unittest.main()