No project description provided
Project description
Yellowbox
Yellowbox makes it easy to run docker containers as part of black box tests.
Documentation: https://yellowbox.readthedocs.io/
Examples
Say you want to run a blackbox test on a service that depends on a redis server.
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")
...
License
Yellowbox is registered under the MIT public license
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
yellowbox-0.7.3.tar.gz
(44.4 kB
view hashes)
Built Distribution
yellowbox-0.7.3-py3-none-any.whl
(57.1 kB
view hashes)
Close
Hashes for yellowbox-0.7.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74c9ded66667e98ca59e42f76b682c1458d407e2063ba08abffa3abd5c0194a1 |
|
MD5 | 51e19d72c5a392ca3ed1fcd332822c49 |
|
BLAKE2b-256 | 47a2147aab0a59dd4f3a4786d891350d8745d03f03187af6d700f92546c85fac |