fastmcp/tests
Jeremiah Lowin 686082a5b5
Add platform-aware OAuth token persistence (#2218)
* Add comprehensive keyring integration tests

Prevents OS keyring pollution during testing by adding a global mock in
conftest.py. Tests verify keyring behavior across platforms and fallback
scenarios without writing to the actual system keyring.

- Add global mock_keyring fixture to tests/conftest.py
- Add TestOAuthProxyKeyring class with 6 keyring-specific tests
- Remove try/except ImportError for keyring (now required dependency)
- Add keyring extra to py-key-value-aio dependency
- Clean up extraneous implementation comments in oauth_proxy.py

* Update OAuth keyring documentation

Update all OAuth-related documentation to reflect keyring-based key management:
- Add version badges to jwt_signing_key, token_encryption_key, and client_storage parameters
- Standardize "Default behavior (`None`):" formatting with backticks
- Ensure consistent messaging about development-only defaults across all docs
- Update oauth-proxy.mdx, oidc-proxy.mdx, http.mdx, storage-backends.mdx, and upgrade-guide.mdx
2025-10-22 20:42:24 -04:00
..
cli Replace subprocess tests with in-process async servers (#2006) 2025-10-19 10:47:54 -04:00
client Replace subprocess tests with in-process async servers (#2006) 2025-10-19 10:47:54 -04:00
contrib feat: Add title, annotations and meta to mixin decorators 2025-10-10 14:23:02 +05:30
deprecated feat: introduce fastmcp.json configuration system (#1517) 2025-08-19 16:06:04 -04:00
experimental Replace subprocess tests with in-process async servers (#2006) 2025-10-19 10:47:54 -04:00
integration_tests Replace subprocess tests with in-process async servers (#2006) 2025-10-19 10:47:54 -04:00
prompts Enable more type checking rules (#1775) 2025-09-07 11:11:44 -04:00
resources Allow direct instantiation of Prompt and Resource classes (#2031) 2025-10-08 21:06:41 -04:00
server Add platform-aware OAuth token persistence (#2218) 2025-10-22 20:42:24 -04:00
tools Add Pydantic-compatible input validation (#2073) 2025-10-14 11:49:30 -07:00
utilities Implement icon support (#2121) 2025-10-17 17:28:08 -04:00
__init__.py Update type handling for resources 2024-11-29 19:42:46 -05:00
conftest.py Add platform-aware OAuth token persistence (#2218) 2025-10-22 20:42:24 -04:00
test_examples.py Cleanup content conversion 2025-09-06 17:32:33 -05:00
test_mcp_config.py optimize test suite (#1893) 2025-09-22 20:07:04 -04:00