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

Function test_having

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

Source from the content-addressed store, hash-verified

439@pytest.mark.parametrize("append_only_1", [True, False])
440@pytest.mark.parametrize("append_only_2", [True, False])
441def test_having(append_only_1, append_only_2):
442 class Schema1(pw.Schema, append_only=append_only_1):
443 a: int
444
445 class Schema2(pw.Schema, append_only=append_only_2):
446 b: int
447
448 table_1 = table_from_datasource(TestDataSource(schema=Schema1))
449 table_2 = table_from_datasource(TestDataSource(schema=Schema2))
450 result = table_1._having(table_2.id)
451
452 assert result._id_column.properties.append_only == (append_only_1 and append_only_2)
453 assert result.a._column.properties.append_only == (append_only_1 and append_only_2)
454
455
456@pytest.mark.parametrize("append_only_1", [True, False])

Callers

nothing calls this directly

Calls 3

table_from_datasourceFunction · 0.90
TestDataSourceClass · 0.90
_havingMethod · 0.80

Tested by

no test coverage detected