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
Release files for yellowbox 0.11.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| yellowbox-0.11.2.tar.gz | 48.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| yellowbox-0.11.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 112.2 kB
Release files / yellowbox-0.11.2.tar.gz
| Download URL | yellowbox-0.11.2.tar.gz |
|---|---|
| Size | 48.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6ecf827ac2da0dfc3ae2177751d485a47564ebf19e84dcdd5d713256cde0b532
|
|
BLAKE2b-256 checksum How to use checksums |
9ad66fb9f3150eea72d9ea8cbd629474805dfdc27203254423c381f4b29ede1d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.11.14 Linux/6.11.0-1018-azure
|
Release files / yellowbox-0.11.2-py3-none-any.whl
| Download URL | yellowbox-0.11.2-py3-none-any.whl |
|---|---|
| Size | 63.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9bb4ccdb2b09643f58f46826b2a8ad35eb482b5a5f59997b44f483675d99152c
|
|
BLAKE2b-256 checksum How to use checksums |
84d41eb5286ed7a2469ade49b9e14dc92fed7ae66ee7ee71e5446adbb4ec7d13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.11.14 Linux/6.11.0-1018-azure
|