fastmcp/tests/utilities
Harshith Thota 321f404046
Added to_data_uri method for Image class. (#2227)
* Added to_data_uri method and path_to_data_uri classmethod for Image class.

* Removed path_to_data_uri classmethod and modified _get_mime_type to use mimetypes.guess_type function instead of hardcoded dictionary.

* Register image/webp with mimetypes before guess_type to support WEBP mimetype detection on Python 3.10.

* Improved branch coverage for Image.to_data_uri.

* Added Image._to_data_uri example in the docs.
2025-11-01 11:40:08 -04:00
..
openapi feat: introduce inline snapshots (#1605) 2025-08-25 10:08:55 -04:00
__init__.py restore 1.x code 2025-04-09 11:54:42 -04:00
test_cli.py Fix path resolution in install commands (#1951) 2025-09-29 20:04:12 -04:00
test_components.py Ensure resource + template names are properly prefixed when importing/mounting (#1423) 2025-08-08 21:29:07 -04:00
test_inspect.py Add "High Value" Ruff Rules (#2255) 2025-10-26 10:20:31 -04:00
test_json_schema.py Fix: Remove JSON schema title metadata while preserving parameters named 'title' (#1872) 2025-09-23 10:19:34 -04:00
test_json_schema_type.py Enable more type checking rules (#1775) 2025-09-07 11:11:44 -04:00
test_logging.py Use lowercase namespace for fastmcp logger (#1791) 2025-09-26 12:13:02 -04:00
test_tests.py Remove open-ended and server-specific settings 2025-06-07 20:20:04 -04:00
test_typeadapter.py Fix method-bound tools (#1360) 2025-08-04 09:41:05 -04:00
test_types.py Added to_data_uri method for Image class. (#2227) 2025-11-01 11:40:08 -04:00