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

Function test_update_cells

python/pathway/tests/test_column_properties.py:521–534  ·  view source on GitHub ↗
(append_only_1, append_only_2)

Source from the content-addressed store, hash-verified

519@pytest.mark.parametrize("append_only_1", [True, False])
520@pytest.mark.parametrize("append_only_2", [True, False])
521def test_update_cells(append_only_1, append_only_2):
522 class Schema1(pw.Schema, append_only=append_only_1):
523 a: int
524
525 class Schema2(pw.Schema, append_only=append_only_2):
526 a: int
527
528 table_1 = table_from_datasource(TestDataSource(schema=Schema1))
529 table_2 = table_from_datasource(TestDataSource(schema=Schema2))
530 table_2.promise_universe_is_subset_of(table_1)
531 result = table_1.update_cells(table_2)
532
533 assert result._id_column.properties.append_only == append_only_1
534 assert not result.a._column.properties.append_only
535
536
537@pytest.mark.parametrize("append_only_1", [True, False])

Callers

nothing calls this directly

Calls 4

table_from_datasourceFunction · 0.90
TestDataSourceClass · 0.90
update_cellsMethod · 0.80

Tested by

no test coverage detected