()
| 30 | |
| 31 | @pytest.fixture |
| 32 | def tool_command(): |
| 33 | with tempfile.TemporaryDirectory() as temp_dir: |
| 34 | with patch.object( |
| 35 | TokenManager, "_get_secure_storage_path", return_value=Path(temp_dir) |
| 36 | ): |
| 37 | TokenManager().save_tokens( |
| 38 | "test-token", (datetime.now() + timedelta(seconds=36000)).timestamp() |
| 39 | ) |
| 40 | tool_command = ToolCommand() |
| 41 | with patch.object(tool_command, "login"): |
| 42 | yield tool_command |
| 43 | |
| 44 | |
| 45 | @patch("crewai_cli.tools.main.subprocess.run") |
nothing calls this directly
no test coverage detected