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

Function test_update_cells_0_rows

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

Source from the content-addressed store, hash-verified

3554
3555
3556def test_update_cells_0_rows():
3557 old = T(
3558 """
3559 | pet | owner | age
3560 """
3561 )
3562 update = T(
3563 """
3564 | owner | age
3565 """
3566 )
3567 expected = T(
3568 """
3569 | pet | owner | age
3570 """
3571 )
3572
3573 match = re.escape(
3574 "Key sets of self and other in update_cells are the same. "
3575 "Using with_columns instead of update_cells."
3576 )
3577
3578 with warns_here(match=match):
3579 new = old.update_cells(update)
3580 with warns_here(match=match):
3581 new2 = old << update
3582 assert_table_equality(new, expected)
3583 assert_table_equality(new2, expected)
3584
3585
3586def test_update_cells_ids_dont_match():

Callers

nothing calls this directly

Calls 3

TFunction · 0.90
warns_hereFunction · 0.90
update_cellsMethod · 0.80

Tested by

no test coverage detected