File tree Expand file tree Collapse file tree
src/praisonai/tests/unit/bots Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,7 +22,9 @@ def test_agentmail_in_builtin_platforms(self):
2222 from praisonai .bots ._registry import _BUILTIN_PLATFORMS
2323
2424 assert "agentmail" in _BUILTIN_PLATFORMS
25- assert _BUILTIN_PLATFORMS ["agentmail" ] == ("praisonai.bots.agentmail" , "AgentMailBot" )
25+ loader = _BUILTIN_PLATFORMS ["agentmail" ]
26+ assert callable (loader )
27+ assert loader ().__name__ == "AgentMailBot"
2628
2729 def test_resolve_adapter_returns_agentmail_bot (self ):
2830 """resolve_adapter('agentmail') should return AgentMailBot class."""
Original file line number Diff line number Diff line change @@ -24,7 +24,9 @@ def test_email_in_builtin_platforms(self):
2424 from praisonai .bots ._registry import _BUILTIN_PLATFORMS
2525
2626 assert "email" in _BUILTIN_PLATFORMS
27- assert _BUILTIN_PLATFORMS ["email" ] == ("praisonai.bots.email" , "EmailBot" )
27+ loader = _BUILTIN_PLATFORMS ["email" ]
28+ assert callable (loader )
29+ assert loader ().__name__ == "EmailBot"
2830
2931 def test_resolve_adapter_returns_email_bot (self ):
3032 """Verify resolve_adapter('email') returns EmailBot class."""
You can’t perform that action at this time.
0 commit comments