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

Function test_push_with_batch

sdk/python/tests/unit/test_data_sources.py:19–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17
18
19def test_push_with_batch():
20 push_source = PushSource(
21 name="test",
22 batch_source=BigQuerySource(table="test.test"),
23 )
24 push_source_proto = push_source.to_proto()
25 assert push_source_proto.HasField("batch_source")
26
27 push_source_unproto = PushSource.from_proto(push_source_proto)
28
29 assert push_source.name == push_source_unproto.name
30 assert push_source.batch_source.name == push_source_unproto.batch_source.name
31
32
33def test_push_source_without_batch_source():

Callers

nothing calls this directly

Calls 4

PushSourceClass · 0.90
BigQuerySourceClass · 0.90
to_protoMethod · 0.45
from_protoMethod · 0.45

Tested by

no test coverage detected