launchdarkly-openfeature-server 0.2.2__tar.gz → 0.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {launchdarkly_openfeature_server-0.2.2 → launchdarkly_openfeature_server-0.3.0}/PKG-INFO +1 -1
- {launchdarkly_openfeature_server-0.2.2 → launchdarkly_openfeature_server-0.3.0}/ld_openfeature/provider.py +9 -0
- {launchdarkly_openfeature_server-0.2.2 → launchdarkly_openfeature_server-0.3.0}/pyproject.toml +1 -1
- {launchdarkly_openfeature_server-0.2.2 → launchdarkly_openfeature_server-0.3.0}/tests/test_provider.py +4 -0
- {launchdarkly_openfeature_server-0.2.2 → launchdarkly_openfeature_server-0.3.0}/LICENSE +0 -0
- {launchdarkly_openfeature_server-0.2.2 → launchdarkly_openfeature_server-0.3.0}/README.md +0 -0
- {launchdarkly_openfeature_server-0.2.2 → launchdarkly_openfeature_server-0.3.0}/ld_openfeature/__init__.py +0 -0
- {launchdarkly_openfeature_server-0.2.2 → launchdarkly_openfeature_server-0.3.0}/ld_openfeature/impl/context_converter.py +0 -0
- {launchdarkly_openfeature_server-0.2.2 → launchdarkly_openfeature_server-0.3.0}/ld_openfeature/impl/details_converter.py +0 -0
- {launchdarkly_openfeature_server-0.2.2 → launchdarkly_openfeature_server-0.3.0}/ld_openfeature/py.typed +0 -0
- {launchdarkly_openfeature_server-0.2.2 → launchdarkly_openfeature_server-0.3.0}/tests/__init__.py +0 -0
- {launchdarkly_openfeature_server-0.2.2 → launchdarkly_openfeature_server-0.3.0}/tests/impl/test_context_converter.py +0 -0
- {launchdarkly_openfeature_server-0.2.2 → launchdarkly_openfeature_server-0.3.0}/tests/impl/test_details_converter.py +0 -0
- {launchdarkly_openfeature_server-0.2.2 → launchdarkly_openfeature_server-0.3.0}/tests/test_data_sources.py +0 -0
|
@@ -22,6 +22,15 @@ class LaunchDarklyProvider(AbstractProvider):
|
|
|
22
22
|
self.__context_converter = EvaluationContextConverter()
|
|
23
23
|
self.__details_converter = ResolutionDetailsConverter()
|
|
24
24
|
|
|
25
|
+
@property
|
|
26
|
+
def client(self) -> LDClient:
|
|
27
|
+
"""
|
|
28
|
+
Access the underlying LaunchDarky client instance backing this provider.
|
|
29
|
+
|
|
30
|
+
This is useful for accessing additional functionality not exposed by the provider.
|
|
31
|
+
"""
|
|
32
|
+
return self.__client
|
|
33
|
+
|
|
25
34
|
def __handle_data_source_status(self, status: DataSourceStatus):
|
|
26
35
|
state = status.state
|
|
27
36
|
if state == DataSourceState.INITIALIZING:
|
|
@@ -42,6 +42,10 @@ def test_metadata_name_is_correct(provider: LaunchDarklyProvider):
|
|
|
42
42
|
assert provider.get_metadata().name == "launchdarkly-openfeature-server"
|
|
43
43
|
|
|
44
44
|
|
|
45
|
+
def test_ldclient_is_accessible(provider: LaunchDarklyProvider):
|
|
46
|
+
assert type(provider.client) is LDClient
|
|
47
|
+
|
|
48
|
+
|
|
45
49
|
def test_not_providing_context_returns_error(provider: LaunchDarklyProvider):
|
|
46
50
|
resolution_details = provider.resolve_boolean_details("flag-key", True, None)
|
|
47
51
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{launchdarkly_openfeature_server-0.2.2 → launchdarkly_openfeature_server-0.3.0}/tests/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|