mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-08 02:29:00 +00:00
test: annotate crew_instance to guide static analyzer
This commit is contained in:
@@ -263,8 +263,7 @@ def test_crew_name():
|
|||||||
|
|
||||||
def test_crew_decorator_propagates_class_name_to_instance():
|
def test_crew_decorator_propagates_class_name_to_instance():
|
||||||
"""@crew-decorated factory method should set Crew.name to the decorated class name."""
|
"""@crew-decorated factory method should set Crew.name to the decorated class name."""
|
||||||
crew = InternalCrew()
|
crew_instance: Crew = InternalCrew().crew()
|
||||||
crew_instance = crew.crew()
|
|
||||||
assert crew_instance.name == "InternalCrew"
|
assert crew_instance.name == "InternalCrew"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user