Skip to main content

No project description provided

Project description

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

Project details


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.6.tar.gz (48.5 kB view details)

Uploaded Source

Built Distribution

yellowbox-0.8.6-py3-none-any.whl (62.3 kB view details)

Uploaded Python 3

File details

Details for the file yellowbox-0.8.6.tar.gz.

File metadata

  • Download URL: yellowbox-0.8.6.tar.gz
  • Upload date:
  • Size: 48.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.8.18 Linux/6.2.0-1011-azure

File hashes

Hashes for yellowbox-0.8.6.tar.gz
Algorithm Hash digest
SHA256 08444c59d471f0539180feae817a2f137c1faac8f1e7021c107b7e319d757db3
MD5 111c4f9dde50b258df441f15b8e046af
BLAKE2b-256 6bc36dd9ede72133559f8d9a8da117bc7907da1e7471ccc923ac95c6a1fcd819

See more details on using hashes here.

File details

Details for the file yellowbox-0.8.6-py3-none-any.whl.

File metadata

  • Download URL: yellowbox-0.8.6-py3-none-any.whl
  • Upload date:
  • Size: 62.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.8.18 Linux/6.2.0-1011-azure

File hashes

Hashes for yellowbox-0.8.6-py3-none-any.whl
Algorithm Hash digest
SHA256 006e6ed39d98204dcfb7fcc64f61fdd25bd1581293fe8a150bdb76dd191585a2
MD5 001634099355d1c1be6df3c9bec5bd7c
BLAKE2b-256 1d032466bc8ccf6b96014d23ab968fe73ac32c7e1f41e77ac55565b0dd850e9d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page