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.
Metadata
Release files for ld-feature-patch 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ld-feature-patch-1.0.0.tar.gz | 11.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ld_feature_patch-1.0.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 15.4 kB
Release files / ld-feature-patch-1.0.0.tar.gz
| Download URL | ld-feature-patch-1.0.0.tar.gz |
|---|---|
| Size | 11.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5e90af0e46a6c0d342083cbaf6534a0ce1249d0b834867458f77cfce4946aca0
|
|
BLAKE2b-256 checksum How to use checksums |
4310b0b19dba61d050af7922cbfaa5d8a87fffade21971b8cf76b6136b3befd9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.13
|
Release files / ld_feature_patch-1.0.0-py2.py3-none-any.whl
| Download URL | ld_feature_patch-1.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
871c8e84da1917a69d8fcffdfb8c63d855ecb6c0aad541e1b6ae9df2e1713013
|
|
BLAKE2b-256 checksum How to use checksums |
55c00b2258ace075a6513c642c77276e03a9aec4b5a92a307a4228e2a0431a12
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.13
|