MCPcopy Index your code
hub / github.com/pathwaycom/pathway / test_buffer

Function test_buffer

python/pathway/tests/test_column_properties.py:233–241  ·  view source on GitHub ↗
(append_only)

Source from the content-addressed store, hash-verified

231
232@pytest.mark.parametrize("append_only", [True, False])
233def test_buffer(append_only):
234 class Schema(pw.Schema, append_only=append_only):
235 a: int
236
237 table = table_from_datasource(TestDataSource(schema=Schema))
238 result = table._buffer(pw.this.a + 10, pw.this.a)
239
240 assert result._id_column.properties.append_only == append_only
241 assert result.a._column.properties.append_only == append_only
242
243
244@pytest.mark.parametrize("append_only_1", [True, False])

Callers

nothing calls this directly

Calls 3

table_from_datasourceFunction · 0.90
TestDataSourceClass · 0.90
_bufferMethod · 0.80

Tested by

no test coverage detected