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

Function test_traceback_static

python/pathway/tests/test_error_messages.py:405–425  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

403
404
405def test_traceback_static():
406 table1 = T(
407 """
408 | foo
409 1 | 1
410 """
411 )
412 table2 = T(
413 """
414 | bar
415 2 | 2
416 """
417 )
418 with _assert_error_trace(ValueError):
419 table1.concat(table2) # cause
420 with _assert_error_trace(ValueError):
421 table1 + table2 # cause
422 with _assert_error_trace(AttributeError):
423 table1.non_existing # cause
424 with _assert_error_trace(KeyError):
425 table1.select(pw.this.non_existing) # cause
426
427
428@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 4

TFunction · 0.90
_assert_error_traceFunction · 0.85
concatMethod · 0.45
selectMethod · 0.45

Tested by

no test coverage detected