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

Function test_remove_errors_2

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

Source from the content-addressed store, hash-verified

753@pytest.mark.parametrize("append_only_1", [True, False])
754@pytest.mark.parametrize("append_only_2", [True, False])
755def test_remove_errors_2(append_only_1, append_only_2):
756 class Schema(pw.Schema):
757 a: int = pw.column_definition(append_only=append_only_1)
758 b: int = pw.column_definition(append_only=append_only_2)
759
760 table = table_from_datasource(TestDataSource(schema=Schema))
761 result = table.remove_errors()
762
763 assert result._id_column.properties.append_only == (append_only_1 or append_only_2)
764 assert result.a._column.properties.append_only == append_only_1
765 assert result.b._column.properties.append_only == append_only_2
766
767
768@pytest.mark.parametrize("append_only", [True, False])

Callers

nothing calls this directly

Calls 3

table_from_datasourceFunction · 0.90
TestDataSourceClass · 0.90
remove_errorsMethod · 0.80

Tested by

no test coverage detected