()
| 3554 | |
| 3555 | |
| 3556 | def 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 | |
| 3586 | def test_update_cells_ids_dont_match(): |
nothing calls this directly
no test coverage detected