MCPcopy Create free account
hub / github.com/crewAIInc/crewAI / test_login

Function test_login

lib/cli/tests/test_cli.py:670–675  ·  view source on GitHub ↗
(command, runner)

Source from the content-addressed store, hash-verified

668
669@mock.patch("crewai_cli.cli.AuthenticationCommand")
670def test_login(command, runner):
671 mock_auth = command.return_value
672 result = runner.invoke(login)
673
674 assert result.exit_code == 0
675 mock_auth.login.assert_called_once()
676
677
678@mock.patch("crewai_core.auth.oauth2.webbrowser.open")

Callers

nothing calls this directly

Calls 1

invokeMethod · 0.45

Tested by

no test coverage detected