mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-05-03 06:00:17 +00:00
enhance: update sync step id on new chat, improve api & new_task queue
This commit is contained in:
parent
b112e7f18e
commit
d2411e7fd9
5 changed files with 54 additions and 8 deletions
|
|
@ -55,6 +55,15 @@ class TestTaskServiceModels:
|
|||
|
||||
assert data.action == Action.improve
|
||||
assert data.data == "Improve this code"
|
||||
assert data.new_task_id is None
|
||||
|
||||
def test_action_improve_data_with_new_task_id(self):
|
||||
"""Test ActionImproveData model creation with new_task_id."""
|
||||
data = ActionImproveData(data="Improve this code", new_task_id="task_123")
|
||||
|
||||
assert data.action == Action.improve
|
||||
assert data.data == "Improve this code"
|
||||
assert data.new_task_id == "task_123"
|
||||
|
||||
def test_action_start_data_creation(self):
|
||||
"""Test ActionStartData model creation."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue