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.1.tar.gz
(46.9 kB
view details)
Built Distribution
yellowbox-0.8.1-py3-none-any.whl
(60.8 kB
view details)
File details
Details for the file yellowbox-0.8.1.tar.gz
.
File metadata
- Download URL: yellowbox-0.8.1.tar.gz
- Upload date:
- Size: 46.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.8.16 Linux/5.15.0-1031-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88d5f11091041b4d064d7be5ef2f37f060f29eae5debc9f0234e8b5ab5239985 |
|
MD5 | da1362226bff5366f9a8799570372fde |
|
BLAKE2b-256 | 444d9be4fd5e88a1b3d79e3707ffa663cb6f5dbb853eb6d6e1dd214041d0279f |
File details
Details for the file yellowbox-0.8.1-py3-none-any.whl
.
File metadata
- Download URL: yellowbox-0.8.1-py3-none-any.whl
- Upload date:
- Size: 60.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.8.16 Linux/5.15.0-1031-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fea2f21c12a3223b2497c788ad796c1cf6ab4840652f56c7d01b6e1fc49e32a6 |
|
MD5 | 9ef42ed652fced5304e9b9807a056a18 |
|
BLAKE2b-256 | de7de4c12db4e43d73aaf809a0879afca1e1006647691b07fd85a898883f4498 |