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

Uploaded Source

Built Distribution

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

pytest_cloudflare_worker-0.0.1-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytest-cloudflare-worker-0.0.1.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for pytest-cloudflare-worker-0.0.1.tar.gz
Algorithm Hash digest
SHA256 6169f92055e9692416f746e1b2268747c6af182f6ca7c0e2db9ebf690eb203f6
MD5 84f3734b024deeb17bce8b5b0bd1154e
BLAKE2b-256 be9fbeec3fe561a98aa8134dedde6dc44a4bc5651bdc9b89a2f5e89990ccb2fd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytest_cloudflare_worker-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for pytest_cloudflare_worker-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0d65dcb03c83d8d8ffb9c1c6b4cbe1daeea95b8f0e4a7bed8ae958d9bae10ced
MD5 91070f7250be901d6aee39c271c347d6
BLAKE2b-256 ea0273d732fe8ca0d5bbd3b11d8a0729b5b273e47f4f96d5bbbc3c385aedabba

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