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
ld-feature-patch-1.0.0.tar.gz
(11.3 kB
view hashes)
Built Distribution
Close
Hashes for ld_feature_patch-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 871c8e84da1917a69d8fcffdfb8c63d855ecb6c0aad541e1b6ae9df2e1713013 |
|
MD5 | 55d961e8658f0b3c402e5e79eefc08d4 |
|
BLAKE2b-256 | 55c00b2258ace075a6513c642c77276e03a9aec4b5a92a307a4228e2a0431a12 |