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

Uploaded Source

Built Distribution

pytest_cloudflare_worker-0.0.4-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytest-cloudflare-worker-0.0.4.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 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.4.tar.gz
Algorithm Hash digest
SHA256 0e25a04961905996db1006646c3ee247853af1f05ca7d6732f027602b889e7ae
MD5 e6c911269be7d233f3dc87e15edf544f
BLAKE2b-256 c9f17696f038812550b3f97d3738729137639a5803f48fb880ce1a154c12df83

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytest_cloudflare_worker-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 30b0f63ffbb6c9946de8f3a3d47cac4b2125ea76091c642efe0223bbe5c405e3
MD5 b670680d78f44ed351d73f9ae94a8401
BLAKE2b-256 2f1d9c9b5306961b3bfd1da61f4a91b0337ec0bf02ff6d831cdb55bc615ef592

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