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

Uploaded Source

Built Distribution

yellowbox-0.7.4-py3-none-any.whl (57.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yellowbox-0.7.4.tar.gz
  • Upload date:
  • Size: 44.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.15 CPython/3.8.13 Linux/5.15.0-1017-azure

File hashes

Hashes for yellowbox-0.7.4.tar.gz
Algorithm Hash digest
SHA256 8552b415a6718469c341ee2b832d31f5bb9617d6cac8f06ea8394b25f18a2a6c
MD5 bbf91475111f5e4d79e61aa458e3efeb
BLAKE2b-256 864a17404b4d30c28e6d4367d50d3d5875682dc19b5df3dd8d86b24cac17cd9d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yellowbox-0.7.4-py3-none-any.whl
  • Upload date:
  • Size: 57.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.15 CPython/3.8.13 Linux/5.15.0-1017-azure

File hashes

Hashes for yellowbox-0.7.4-py3-none-any.whl
Algorithm Hash digest
SHA256 055715a0cf598952c10a558d530de88d6c94efd881656f1a21d3322e6a55e59e
MD5 31145ba05b4b8dc700edb1db99992c45
BLAKE2b-256 833cf9c93ba2584d40e378944a4af41969a19f34422985fb3a64748142b9c2f0

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