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

Function test_difference_2

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

Source from the content-addressed store, hash-verified

420@pytest.mark.parametrize("append_only_2", [True, False])
421@pytest.mark.parametrize("append_only_3", [True, False])
422def test_difference_2(append_only_1, append_only_2, append_only_3):
423 class Schema1(pw.Schema):
424 a: int = pw.column_definition(append_only=append_only_1)
425 b: int = pw.column_definition(append_only=append_only_2)
426
427 class Schema2(pw.Schema, append_only=append_only_3):
428 c: int
429
430 table_1 = table_from_datasource(TestDataSource(schema=Schema1))
431 table_2 = table_from_datasource(TestDataSource(schema=Schema2))
432 result = table_1.difference(table_2)
433
434 assert not result._id_column.properties.append_only
435 assert not result.a._column.properties.append_only
436 assert not result.b._column.properties.append_only
437
438
439@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