Skip to main content

Yellowbox

Test YellowBox Coverage

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)

Source distribution for yellowbox 0.11.2
File Size Uploaded
yellowbox-0.11.2.tar.gz 48.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for yellowbox 0.11.2
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.11.2 This release

2 release files

0.8.9

2 release files

0.8.8

2 release files

0.8.7

2 release files

0.8.6

2 release files

0.8.5

2 release files

0.8.4

2 release files

0.8.3

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.8

2 release files

0.7.6

2 release files

0.7.5

2 release files

0.7.4

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.9

2 release files

0.6.8

2 release files

0.6.7

2 release files

0.6.6

2 release files

0.6.5

2 release files

0.6.4

2 release files

0.6.3

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.1.1

2 release files

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page