Create a patch context that makes _get_user_provider return the given provider.
(provider: AnalyticsUserProvider)
| 32 | |
| 33 | |
| 34 | def _patch_user_provider(provider: AnalyticsUserProvider): |
| 35 | """Create a patch context that makes _get_user_provider return the given provider.""" |
| 36 | return patch( |
| 37 | 'openhands.analytics.analytics_context._get_user_provider', |
| 38 | return_value=provider, |
| 39 | ) |
| 40 | |
| 41 | |
| 42 | # --------------------------------------------------------------------------- |
no outgoing calls
no test coverage detected