diff --git a/tests/test_runtime_clarity.py b/tests/test_runtime_clarity.py index fabd6aa..e169d66 100644 --- a/tests/test_runtime_clarity.py +++ b/tests/test_runtime_clarity.py @@ -243,9 +243,10 @@ class TestRuntimeClarity(unittest.TestCase): self.assertIn("switching is disabled", res["message"].lower()) self.assertIsNone(gitea_config._active_profile_override) + @patch("mcp_server._trusted_session_repository", return_value={"repository": "Example-Org/Example-Repo", "org": "Example-Org", "repo": "Example-Repo", "reasons": []}) @patch("mcp_server.api_request") @patch("mcp_server.get_auth_header") - def test_activate_profile_succeeds_when_enabled(self, mock_auth, mock_api): + def test_activate_profile_succeeds_when_enabled(self, mock_auth, mock_api, mock_trusted): self._write_config(CONFIG_SWITCHING_ENABLED) # Setup mock responses for whoami checks