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.2.tar.gz
(47.1 kB
view details)
Built Distribution
yellowbox-0.8.2-py3-none-any.whl
(61.1 kB
view details)
File details
Details for the file yellowbox-0.8.2.tar.gz
.
File metadata
- Download URL: yellowbox-0.8.2.tar.gz
- Upload date:
- Size: 47.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.8.16 Linux/5.15.0-1033-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c56c93788c2afc58333da189931efb4fce62ff51262c86af6dc0f344bad21a68 |
|
MD5 | 1c195e0f2e8121cf15aac6214d773cbd |
|
BLAKE2b-256 | 579d612a19dd2e730c08e13651979344fde027153506e4226e4f07dea15da5b1 |
File details
Details for the file yellowbox-0.8.2-py3-none-any.whl
.
File metadata
- Download URL: yellowbox-0.8.2-py3-none-any.whl
- Upload date:
- Size: 61.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.8.16 Linux/5.15.0-1033-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3458a01a85d3ecb1effc9575747c5a794c8ffba5b344e25edfdd5fd6e18cbad |
|
MD5 | 5bd633005ee120524f711b58d48e8862 |
|
BLAKE2b-256 | f5339337a8e0718a395cc7063f4875ee780c8ed163ac35746aab3c349a22978a |