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

Function test_difference

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

Source from the content-addressed store, hash-verified

402@pytest.mark.parametrize("append_only_1", [True, False])
403@pytest.mark.parametrize("append_only_2", [True, False])
404def test_difference(append_only_1, append_only_2):
405 class Schema1(pw.Schema, append_only=append_only_1):
406 a: int
407
408 class Schema2(pw.Schema, append_only=append_only_2):
409 b: int
410
411 table_1 = table_from_datasource(TestDataSource(schema=Schema1))
412 table_2 = table_from_datasource(TestDataSource(schema=Schema2))
413 result = table_1.difference(table_2)
414
415 assert not result._id_column.properties.append_only
416 assert not result.a._column.properties.append_only
417
418
419@pytest.mark.parametrize("append_only_1", [True, False])

Callers

nothing calls this directly

Calls 3

table_from_datasourceFunction · 0.90
TestDataSourceClass · 0.90
differenceMethod · 0.80

Tested by

no test coverage detected