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.11.2.tar.gz
(48.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file yellowbox-0.11.2.tar.gz.
File metadata
- Download URL: yellowbox-0.11.2.tar.gz
- Upload date:
- Size: 48.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.11.14 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ecf827ac2da0dfc3ae2177751d485a47564ebf19e84dcdd5d713256cde0b532
|
|
| MD5 |
34d5bd8d468289604b03b4ecf0b66fa4
|
|
| BLAKE2b-256 |
9ad66fb9f3150eea72d9ea8cbd629474805dfdc27203254423c381f4b29ede1d
|
File details
Details for the file yellowbox-0.11.2-py3-none-any.whl.
File metadata
- Download URL: yellowbox-0.11.2-py3-none-any.whl
- Upload date:
- Size: 63.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.11.14 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bb4ccdb2b09643f58f46826b2a8ad35eb482b5a5f59997b44f483675d99152c
|
|
| MD5 |
d2b0b2a9bd72302c2b7d3536c0d56e85
|
|
| BLAKE2b-256 |
84d41eb5286ed7a2469ade49b9e14dc92fed7ae66ee7ee71e5446adbb4ec7d13
|