mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-29 10:56:22 +02:00
fix(test_role): format error
This commit is contained in:
parent
bd2b1950eb
commit
82a5eec727
1 changed files with 3 additions and 1 deletions
|
|
@ -3,8 +3,8 @@
|
|||
# @Desc : unittest of Role
|
||||
import pytest
|
||||
|
||||
from metagpt.roles.role import Role
|
||||
from metagpt.llm import HumanProvider
|
||||
from metagpt.roles.role import Role
|
||||
|
||||
|
||||
def test_role_desc():
|
||||
|
|
@ -12,9 +12,11 @@ def test_role_desc():
|
|||
assert role.profile == "Sales"
|
||||
assert role.desc == "Best Seller"
|
||||
|
||||
|
||||
def test_role_human():
|
||||
role = Role(is_human=True)
|
||||
assert isinstance(role.llm, HumanProvider)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
pytest.main([__file__, "-s"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue