Skip to main content

LD Feature Patch

https://img.shields.io/pypi/v/ld_patch.svg https://img.shields.io/travis/pymetrics/ld-feature-patch.svg Documentation Status

Patch Launch Darkly feature flags for unit testing

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.

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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ld_feature_patch-1.0.0-py2.py3-none-any.whl (4.1 kB view details)

Uploaded Python 2Python 3

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

Hashes for ld-feature-patch-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5e90af0e46a6c0d342083cbaf6534a0ce1249d0b834867458f77cfce4946aca0
MD5 954fb042a2d5a81227ffb3c684185690
BLAKE2b-256 4310b0b19dba61d050af7922cbfaa5d8a87fffade21971b8cf76b6136b3befd9

See more details on using hashes here.

File details

Details for the file ld_feature_patch-1.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for ld_feature_patch-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 871c8e84da1917a69d8fcffdfb8c63d855ecb6c0aad541e1b6ae9df2e1713013
MD5 55d961e8658f0b3c402e5e79eefc08d4
BLAKE2b-256 55c00b2258ace075a6513c642c77276e03a9aec4b5a92a307a4228e2a0431a12

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page