mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-10 16:22:37 +02:00
fix format
This commit is contained in:
parent
58c2c55ee9
commit
294b035fb4
2 changed files with 5 additions and 5 deletions
|
|
@ -3,6 +3,7 @@
|
|||
# @Desc : unittest of action_outcls_registry
|
||||
|
||||
from typing import List
|
||||
|
||||
from metagpt.actions.action_node import ActionNode
|
||||
|
||||
|
||||
|
|
@ -18,10 +19,9 @@ def test_action_outcls_registry():
|
|||
outinst1 = outcls1(**out_data)
|
||||
assert outinst1 == outinst
|
||||
|
||||
outcls2 = ActionNode(key="",
|
||||
expected_type=str,
|
||||
instruction="",
|
||||
example="").create_model_class(class_name, out_mapping)
|
||||
outcls2 = ActionNode(key="", expected_type=str, instruction="", example="").create_model_class(
|
||||
class_name, out_mapping
|
||||
)
|
||||
outinst2 = outcls2(**out_data)
|
||||
assert outinst2 == outinst
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue