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

Function test_table_getitem

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

Source from the content-addressed store, hash-verified

524
525
526def test_table_getitem():
527 tab = T(
528 """
529 a
530 1
531 2
532 """
533 )
534
535 with _assert_error_trace(
536 ValueError,
537 match=re.escape(
538 "Table.__getitem__ argument has to be a ColumnReference to the same table or pw.this, or a string "
539 + "(or a list of those)."
540 ),
541 ):
542 tab[tab.copy().a] # cause
543
544
545def test_from_columns():

Callers

nothing calls this directly

Calls 3

TFunction · 0.90
_assert_error_traceFunction · 0.85
copyMethod · 0.45

Tested by

no test coverage detected