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

Function test_update_rows

python/pathway/tests/test_common.py:3693–3722  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3691
3692
3693def test_update_rows():
3694 old = T(
3695 """
3696 | pet | owner | age
3697 1 | 1 | Alice | 10
3698 2 | 1 | Bob | 9
3699 3 | 2 | Alice | 8
3700 4 | 1 | Bob | 7
3701 """
3702 )
3703 update = T(
3704 """
3705 | pet | owner | age
3706 1 | 7 | Bob | 11
3707 5 | 0 | Eve | 10
3708 """
3709 )
3710 expected = T(
3711 """
3712 | pet | owner | age
3713 1 | 7 | Bob | 11
3714 2 | 1 | Bob | 9
3715 3 | 2 | Alice | 8
3716 4 | 1 | Bob | 7
3717 5 | 0 | Eve | 10
3718 """
3719 )
3720
3721 new = old.update_rows(update)
3722 assert_table_equality(new, expected)
3723
3724
3725def test_update_rows_no_columns():

Callers

nothing calls this directly

Calls 2

TFunction · 0.90
update_rowsMethod · 0.80

Tested by

no test coverage detected