Preparing for system design interviews?  Try bugzed.com →

Mock Open

JSON →
library 1.4.0 ·python
verified Jun 28, 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 27
actors 5 distinct systems
last hit 23d ago GPTBot
ByteDance
6
GPTBot
4
Amazonbot
4
Script
1
Humans
9

top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇨🇦 Canada · 🇨🇳 China · 🇫🇷 France