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
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e25a04961905996db1006646c3ee247853af1f05ca7d6732f027602b889e7ae |
|
MD5 | e6c911269be7d233f3dc87e15edf544f |
|
BLAKE2b-256 | c9f17696f038812550b3f97d3738729137639a5803f48fb880ce1a154c12df83 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30b0f63ffbb6c9946de8f3a3d47cac4b2125ea76091c642efe0223bbe5c405e3 |
|
MD5 | b670680d78f44ed351d73f9ae94a8401 |
|
BLAKE2b-256 | 2f1d9c9b5306961b3bfd1da61f4a91b0337ec0bf02ff6d831cdb55bc615ef592 |