未提供项目描述
项目描述
Yellowbox
Yellowbox使将docker容器作为黑盒测试的一部分运行变得容易。
文档: https://yellowbox.readthedocs.io/
示例
假设你想对一个依赖于redis服务器的服务进行黑盒测试。
from yellowbox.clients import docker_client
from yellowbox.extras import RedisService
def test_black_box():
with docker_client() as docker_client, RedisService.run(docker_client) as redis:
redis_port = redis.client_port() # this the host port the redis
... # run your black box test here
# yellowbox will automatically close the service when exiting the scope
def test_black_box_with_initial_data():
# you can use the service's built-in utility functions to
# easily interoperate the service
with docker_client() as docker_client,
RedisService.run(docker_client) as redis,
redis.client() as client:
client.set("foo", "bar")
...
许可证
Yellowbox注册在MIT公共许可证下
项目详情
下载文件
下载适用于您平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。
源分布
yellowbox-0.8.8.tar.gz (49.8 kB 查看哈希值)
构建分布
yellowbox-0.8.8-py3-none-any.whl (63.3 kB 查看哈希值)
关闭
yellowbox-0.8.8.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 6d54ee0bf7bc86ffef4231d858a6379ba489e3bc41463012b3c049e15e5f695b |
|
MD5 | 53b23129fa5dde8ffbac36df25c42409 |
|
BLAKE2b-256 | 8252139452a462cb4782917103d40eb90fcf1ac61b42fcd94f00fc14de4d0e82 |
关闭
yellowbox-0.8.8-py3-none-any.whl的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | c7e01daa0ae9cdc61d237888158a0ed32eb9267b7282d920e8017f2d4d7335fc |
|
MD5 | 50cf66d5da9a90f81f5376f54e95527c |
|
BLAKE2b-256 | a5754842862a5135efb693cb8016643dbb0522a9a109f8947d0564b3e44e4096 |