test_file_storage_backends.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:pillar 作者: armadillica 项目源码 文件源码
def create_test_file(self) -> (typing.IO, bytes):
        import io
        import secrets

        file_contents = secrets.token_bytes(512)
        test_file: typing.IO = io.BytesIO(file_contents)

        return test_file, file_contents
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号