MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / _patch_user_provider

Function _patch_user_provider

tests/unit/test_analytics_context.py:34–39  ·  view source on GitHub ↗

Create a patch context that makes _get_user_provider return the given provider.

(provider: AnalyticsUserProvider)

Source from the content-addressed store, hash-verified

32
33
34def _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# ---------------------------------------------------------------------------

Calls

no outgoing calls

Tested by

no test coverage detected