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

Function test_update_cells

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

Source from the content-addressed store, hash-verified

3521
3522
3523def test_update_cells():
3524 old = T(
3525 """
3526 | pet | owner | age
3527 1 | 1 | Alice | 10
3528 2 | 1 | Bob | 9
3529 3 | 2 | Alice | 8
3530 4 | 1 | Bob | 7
3531 """
3532 )
3533 update = T(
3534 """
3535 | owner | age
3536 1 | Eve | 10
3537 4 | Eve | 3
3538 """
3539 )
3540 expected = T(
3541 """
3542 | pet | owner | age
3543 1 | 1 | Eve | 10
3544 2 | 1 | Bob | 9
3545 3 | 2 | Alice | 8
3546 4 | 1 | Eve | 3
3547 """
3548 )
3549 pw.universes.promise_is_subset_of(update, old)
3550
3551 new = old.update_cells(update)
3552 assert_table_equality(new, expected)
3553 assert_table_equality(old << update, expected)
3554
3555
3556def test_update_cells_0_rows():

Callers

nothing calls this directly

Calls 2

TFunction · 0.90
update_cellsMethod · 0.80

Tested by

no test coverage detected