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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yellowbox-0.11.2-py3-none-any.whl (63.4 kB view details)

Uploaded Python 3

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

Hashes for yellowbox-0.11.2.tar.gz
Algorithm Hash digest
SHA256 6ecf827ac2da0dfc3ae2177751d485a47564ebf19e84dcdd5d713256cde0b532
MD5 34d5bd8d468289604b03b4ecf0b66fa4
BLAKE2b-256 9ad66fb9f3150eea72d9ea8cbd629474805dfdc27203254423c381f4b29ede1d

See more details on using hashes here.

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

Hashes for yellowbox-0.11.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9bb4ccdb2b09643f58f46826b2a8ad35eb482b5a5f59997b44f483675d99152c
MD5 d2b0b2a9bd72302c2b7d3536c0d56e85
BLAKE2b-256 84d41eb5286ed7a2469ade49b9e14dc92fed7ae66ee7ee71e5446adbb4ec7d13

See more details on using hashes here.

Supported by

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