pytest plugin for testing cloudflare workers
Project description
pytest-cloudflare-worker
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
Built Distribution
Close
Hashes for pytest-cloudflare-worker-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6169f92055e9692416f746e1b2268747c6af182f6ca7c0e2db9ebf690eb203f6 |
|
MD5 | 84f3734b024deeb17bce8b5b0bd1154e |
|
BLAKE2b-256 | be9fbeec3fe561a98aa8134dedde6dc44a4bc5651bdc9b89a2f5e89990ccb2fd |
Close
Hashes for pytest_cloudflare_worker-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d65dcb03c83d8d8ffb9c1c6b4cbe1daeea95b8f0e4a7bed8ae958d9bae10ced |
|
MD5 | 91070f7250be901d6aee39c271c347d6 |
|
BLAKE2b-256 | ea0273d732fe8ca0d5bbd3b11d8a0729b5b273e47f4f96d5bbbc3c385aedabba |