Mock Open

JSON →
library 1.4.0 ·python
verified May 25, 2026

The `mock-open` library (current version 1.4.0) provides an enhanced mock object for testing file I/O operations in Python. It extends `unittest.mock.mock_open` to offer more realistic behavior for file-like objects, including robust handling of `with` statements, `read`, `write`, `seek`, and binary modes. It is actively maintained with releases addressing compatibility and feature enhancements.

total hits 14
actors 6 distinct systems
last hit 2d ago AhrefsBot
MetaBot
4
GPTBot
2
Script
2
ClaudeBot
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇳🇴 Norway