Skip to main content

pytest plugin for testing cloudflare workers

Project description


CI Coverage pypi versions license

CloudFlare worker system tests packaged as a pytest plugin.


  • <input type="checkbox" checked="" disabled="" /> real environment - the plugin deploys your worker to a preview environment, then routes real HTTPS requests to the worker so you get a true environment in tests
  • <input type="checkbox" checked="" disabled="" /> advanced features - like environment variables and KV worker database work out of the box
  • <input type="checkbox" checked="" disabled="" /> wrangler integration - the plugin integrated with wrangler to build your worker and setup bindings like environment variables and KV worker namespaces
  • <input type="checkbox" checked="" disabled="" /> logging - logs from workers using console.log(...) are available in tests

In beta, this package is currently active development, API may change at any time


pip install pytest-cloudflare-worker



Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pytest-cloudflare-worker, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size pytest_cloudflare_worker-0.0.1-py3-none-any.whl (8.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pytest-cloudflare-worker-0.0.1.tar.gz (7.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page