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

Function test_remove_errors

python/pathway/tests/test_errors.py:680–708  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

678
679
680def test_remove_errors():
681 t1 = T(
682 """
683 a | b | c
684 3 | 3 | 1
685 4 | 0 | 2
686 5 | 5 | 0
687 6 | 2 | 3
688 """
689 )
690
691 t2 = t1.select(x=pw.this.a // pw.this.b)
692 t3 = t1.select(y=pw.this.a // pw.this.c)
693
694 t4 = t1.select(pw.this.a, x=t2.x, y=t3.y)
695
696 res = t4.remove_errors()
697
698 assert_table_equality_wo_index(
699 res,
700 T(
701 """
702 a | x | y
703 3 | 1 | 3
704 6 | 3 | 2
705 """
706 ),
707 terminate_on_error=False,
708 )
709
710
711def test_remove_errors_identity():

Callers

nothing calls this directly

Calls 3

TFunction · 0.90
remove_errorsMethod · 0.80
selectMethod · 0.45

Tested by

no test coverage detected