test_request.py 文件源码

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

项目:drf-reverse-proxy 作者: danpoland 项目源码 文件源码
def test_custom_retries(self):
        RETRIES = Retry(20, backoff_factor=0.1)
        options = {'path': 'test/', 'retries': RETRIES}

        self.factory_custom_proxy_view(**options)
        url = 'http://www.example.com/test/'
        headers = {'Cookie': ''}
        self.urlopen.assert_called_with('GET', url, redirect=False,
                                        retries=RETRIES,
                                        preload_content=False,
                                        decode_content=False,
                                        headers=headers, body=b'')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号