-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5f9b0b7
commit ea9e1f4
Showing
10 changed files
with
957 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Test fixtures | ||
============= | ||
|
||
ldclient.integrations.test_data module | ||
-------------------------------------- | ||
|
||
The entry point for this feature is :class:`ldclient.integrations.test_data.TestData`. | ||
|
||
.. automodule:: ldclient.integrations.test_data | ||
:members: | ||
:special-members: __init__ | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import copy | ||
from ldclient.versioned_data_kind import FEATURES | ||
from ldclient.rwlock import ReadWriteLock | ||
|
||
|
||
class _TestDataSource(): | ||
|
||
def __init__(self, feature_store, test_data): | ||
self._feature_store = feature_store | ||
self._test_data = test_data | ||
|
||
def start(self): | ||
self._feature_store.init(self._test_data._make_init_data()) | ||
|
||
def stop(self): | ||
self._test_data._closed_instance(self) | ||
|
||
def initialized(self): | ||
return True | ||
|
||
def upsert(self, new_flag): | ||
self._feature_store.upsert(FEATURES, new_flag) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.