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

Uploaded Source

Built Distribution

yellowbox-0.7.8-py3-none-any.whl (59.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yellowbox-0.7.8.tar.gz
  • Upload date:
  • Size: 46.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.8.15 Linux/5.15.0-1024-azure

File hashes

Hashes for yellowbox-0.7.8.tar.gz
Algorithm Hash digest
SHA256 83a05355345560396b102d802e8e13640f98ea4e34a7abf171726d351c02b416
MD5 b19d83d3b2e4f78ae010c24b654d8d3e
BLAKE2b-256 c3b58cdf17300b827a80c25ab4d096261d54b9ae94309ae15c848fcee3dc249e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yellowbox-0.7.8-py3-none-any.whl
  • Upload date:
  • Size: 59.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.8.15 Linux/5.15.0-1024-azure

File hashes

Hashes for yellowbox-0.7.8-py3-none-any.whl
Algorithm Hash digest
SHA256 bc93ad8b43f0ae71b6bf5f89ba5a267b13706b706fd75830d8c0ad8bfa75e329
MD5 0511ab65b82de2afe9d3835c4795abbb
BLAKE2b-256 3930eaeec26d9e32d2fc8ed809814fc3426f51091b0f3e31350ac86fb48aebf2

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