Skip to main content

pytest plugin for testing cloudflare workers

Project description

pytest cloudflare worker

CI Coverage pypi versions license

CloudFlare worker system tests packaged as a pytest plugin.

Features:

  • 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
  • advanced features - like environment variables and KV worker database work out of the box
  • wrangler integration - the plugin integrated with wrangler to build your worker and setup bindings like environment variables and KV worker namespaces
  • 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

Install

pip install pytest-cloudflare-worker

Usage

TODO

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

pytest-cloudflare-worker-0.0.3.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

pytest_cloudflare_worker-0.0.3-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file pytest-cloudflare-worker-0.0.3.tar.gz.

File metadata

  • Download URL: pytest-cloudflare-worker-0.0.3.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.9.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for pytest-cloudflare-worker-0.0.3.tar.gz
Algorithm Hash digest
SHA256 18ef7f5210bbcba5ca875f4912d8d33130e7dd69a4822c0b22fff0e8916148ad
MD5 0776f8ccc11b6eeba441d0f708ad2918
BLAKE2b-256 d6d0c4369d80e12e073e0cc68b097c05a07d022b1eaca1c4efa4eea09b708c18

See more details on using hashes here.

File details

Details for the file pytest_cloudflare_worker-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: pytest_cloudflare_worker-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.9.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for pytest_cloudflare_worker-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 36e0015add247879764da1853ccf31c445bae65a71917b76e69cb471773924ca
MD5 16fe59989e850db018d3818ddb7c3b0f
BLAKE2b-256 81e5906d9245705313e47125e4118df5e50c609bd45fc6781fb91dba44c1fc67

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