跳转到主要内容

测试时禁用网络连接

项目描述

Python包,用于测试目的模拟互联网故障。

此分支修复了原始存储库中的错误。库正常工作,100%。

安装

$ pip install internet-sabotage3

用法

from internet_sabotage import no_connection

with no_connection():
    response = requests.get('http://httpbin.org/ip')

from internet_sabotage import no_connection

@no_connection
def test_something():
    pass

许可证

MIT

项目详情


下载文件

为您的平台下载文件。如果您不确定选择哪个,请了解更多关于 安装包 的信息。

源分布

internet-sabotage3-0.1.6.tar.gz (4.6 kB 查看哈希)

上传时间:

由以下机构支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面