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

Function test_freeze

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

Source from the content-addressed store, hash-verified

262
263@pytest.mark.parametrize("append_only", [True, False])
264def test_freeze(append_only):
265 class Schema(pw.Schema, append_only=append_only):
266 a: int
267
268 table = table_from_datasource(TestDataSource(schema=Schema))
269 result = table._freeze(pw.this.a + 10, pw.this.a)
270
271 assert result._id_column.properties.append_only == append_only
272 assert result.a._column.properties.append_only == append_only
273
274
275@pytest.mark.parametrize("append_only", [True, False])

Callers

nothing calls this directly

Calls 3

table_from_datasourceFunction · 0.90
TestDataSourceClass · 0.90
_freezeMethod · 0.80

Tested by

no test coverage detected