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.8.4.tar.gz
(47.4 kB
view details)
Built Distribution
yellowbox-0.8.4-py3-none-any.whl
(60.8 kB
view details)
File details
Details for the file yellowbox-0.8.4.tar.gz
.
File metadata
- Download URL: yellowbox-0.8.4.tar.gz
- Upload date:
- Size: 47.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.8.17 Linux/5.15.0-1041-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | efa8eab2ab451545e0f395e26d6a036dd0ae1cadea89941bd2b4705772a905dd |
|
MD5 | 2d8fd2ee1c69ac800d077208d4d4aac8 |
|
BLAKE2b-256 | ba575a49db21493cc7646a192de97726b143177d6474582ae1ea3f67ba06965a |
File details
Details for the file yellowbox-0.8.4-py3-none-any.whl
.
File metadata
- Download URL: yellowbox-0.8.4-py3-none-any.whl
- Upload date:
- Size: 60.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.8.17 Linux/5.15.0-1041-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 606e517bb2c211c8ae65cd1faec810343639d9300eb573937984403b1095360d |
|
MD5 | 6e8b3c05eb2fd7840611e7134dd02c48 |
|
BLAKE2b-256 | f9ed5414fdaaf0667b5c1fdffbed26b03338a71944ee59345a95371564b229b3 |