(mock_org_command_class, runner)
| 56 | |
| 57 | @patch("crewai_cli.cli.OrganizationCommand") |
| 58 | def 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 | |
| 69 | class TestOrganizationCommand(unittest.TestCase): |