MCPcopy
hub / github.com/pathwaycom/pathway / assert_key_entries_in_stream_consistent

Function assert_key_entries_in_stream_consistent

python/pathway/tests/utils.py:295–297  ·  view source on GitHub ↗
(expected: list[DiffEntry], table: pw.Table)

Source from the content-addressed store, hash-verified

293# of the sequence of updates defined in expected
294# - the final entry for both stream and list is the same
295def assert_key_entries_in_stream_consistent(expected: list[DiffEntry], table: pw.Table):
296 callback = CheckKeyConsistentInStreamCallback(expected)
297 pw.io.subscribe(table, callback, callback.on_end)
298
299
300def assert_stream_equal(expected: list[DiffEntry], table: pw.Table):

Calls 2

subscribeMethod · 0.80