-
Notifications
You must be signed in to change notification settings - Fork 1
feat: Add support for provider events. #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| self.emit_provider_configuration_changed(ProviderEventDetails(flags_changed=[change.key])) | ||
| pass | ||
|
|
||
| def initialize(self, evaluation_context: EvaluationContext): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should handle the cases where the client failed or succeeded within the start_wait period, or where it exceeded that period and the data source later becomes VALID or OFF.
tests/test_provider.py
Outdated
| try: | ||
| api.set_provider(openfeature_provider) | ||
| # The method should throw | ||
| assert False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can also do this, which is probably slightly preferred.
| assert False | |
| pytest.fail("set_provider should have raised an exception") |
Co-authored-by: Matthew M. Keeler <[email protected]>
Co-authored-by: Matthew M. Keeler <[email protected]>
🤖 I have created a release *beep* *boop* --- ## [0.2.0](0.1.2...0.2.0) (2024-06-11) ### Features * Add support for provider events. ([#12](#12)) ([c69231a](c69231a)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
No description provided.