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

Function test_org_current_command

lib/cli/tests/organization/test_main.py:58–66  ·  view source on GitHub ↗
(mock_org_command_class, runner)

Source from the content-addressed store, hash-verified

56
57@patch("crewai_cli.cli.OrganizationCommand")
58def test_org_current_command(mock_org_command_class, runner):
59 mock_org_instance = MagicMock()
60 mock_org_command_class.return_value = mock_org_instance
61
62 result = runner.invoke(current)
63
64 assert result.exit_code == 0
65 mock_org_command_class.assert_called_once()
66 mock_org_instance.current.assert_called_once()
67
68
69class TestOrganizationCommand(unittest.TestCase):

Callers

nothing calls this directly

Calls 1

invokeMethod · 0.45

Tested by

no test coverage detected