pytest-aiofiles pytest-aiofiles provides pytest fixtures for writing aiofiles tests using pyfakefs, instead of real file IO. Features fake filesystem fixture attached to aiofiles automatic aiofiles monkey-patching Documentation http://pytest-aiofiles.readthedocs.io/ Source code http://github.com/ptpb/pytest-aiofiles