MCPcopy Index your code
hub / github.com/feast-dev/feast / builder

Function builder

sdk/python/tests/unit/test_feature_server.py:41–50  ·  view source on GitHub ↗
(**async_support)

Source from the content-addressed store, hash-verified

39@pytest.fixture
40def mock_fs_factory():
41 def builder(**async_support):
42 provider = FooProvider.with_async_support(**async_support)
43 fs = MagicMock()
44 fs._get_provider.return_value = provider
45 empty_response = OnlineResponse(GetOnlineFeaturesResponse(results=[]))
46 fs.get_online_features = MagicMock(return_value=empty_response)
47 fs.push = MagicMock()
48 fs.get_online_features_async = AsyncMock(return_value=empty_response)
49 fs.push_async = AsyncMock()
50 return fs
51
52 return builder
53

Callers

nothing calls this directly

Calls 2

OnlineResponseClass · 0.90
with_async_supportMethod · 0.80

Tested by

no test coverage detected