Patch Launch Darkly feature flags for unit testing
Project description
LD Feature Patch
Patch Launch Darkly feature flags for unit testing
Free software: Apache Software License 2.0
Documentation: https://ld-feature-patch.readthedocs.io/en/latest/.
Usage
from ld_patch import patch_feature
@patch_feature("my.flag.key", True)
def test_my_code():
# Feature defaults to False
show_feature = ldclient.variation(
"my.flag.key",
"test@example.com",
False
)
# But patch_feature set it to True
assert show_feature == True
Installation
python -m pip install ld-feature-patch
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
1.0.0 (2024-01-12)
Drop support for Python 3.6. Add Python 3.10 - 3.12.
0.1.0 (2021-01-11)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ld-feature-patch-1.0.0.tar.gz.
File metadata
- Download URL: ld-feature-patch-1.0.0.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e90af0e46a6c0d342083cbaf6534a0ce1249d0b834867458f77cfce4946aca0
|
|
| MD5 |
954fb042a2d5a81227ffb3c684185690
|
|
| BLAKE2b-256 |
4310b0b19dba61d050af7922cbfaa5d8a87fffade21971b8cf76b6136b3befd9
|
File details
Details for the file ld_feature_patch-1.0.0-py2.py3-none-any.whl.
File metadata
- Download URL: ld_feature_patch-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
871c8e84da1917a69d8fcffdfb8c63d855ecb6c0aad541e1b6ae9df2e1713013
|
|
| MD5 |
55d961e8658f0b3c402e5e79eefc08d4
|
|
| BLAKE2b-256 |
55c00b2258ace075a6513c642c77276e03a9aec4b5a92a307a4228e2a0431a12
|