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

Uploaded Source

Built Distribution

yellowbox-0.8.5-py3-none-any.whl (60.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yellowbox-0.8.5.tar.gz
  • Upload date:
  • Size: 47.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.8.17 Linux/5.15.0-1041-azure

File hashes

Hashes for yellowbox-0.8.5.tar.gz
Algorithm Hash digest
SHA256 98f567713865a36d027b47dceca2a8a896368aba7602654cb336121e9db07df5
MD5 199a72c4ba430d4992df581ebd1864c9
BLAKE2b-256 f90c5bb7b4ec81816d4074089111a80e1e387486271d62985ba7fbb570b0d251

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yellowbox-0.8.5-py3-none-any.whl
  • Upload date:
  • Size: 60.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.8.17 Linux/5.15.0-1041-azure

File hashes

Hashes for yellowbox-0.8.5-py3-none-any.whl
Algorithm Hash digest
SHA256 2e6dded19d7a430bd681decb7f62ebcfa5010df95721c1b96676a938576f16ec
MD5 00df5fda12f6b84c3f89294d42822b7e
BLAKE2b-256 0339664d5d668a5b6db02d92c8105bec4da8b6cc3c82c446e66b24baeb4a3c2e

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