MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_row_getitem_column

Method test_row_getitem_column

test/sql/test_resultset.py:717–725  ·  view source on GitHub ↗
(self, connection)

Source from the content-addressed store, hash-verified

715 eq_(r._mapping["user_name"], "jack")
716
717 def test_row_getitem_column(self, connection):
718 col = literal_column("1").label("foo")
719
720 row = connection.execute(select(col)).first()
721
722 with expect_raises_message(TypeError, "tuple indices must be"):
723 row[col]
724
725 eq_(row._mapping[col], 1)
726
727 def test_column_accessor_basic_text(self, connection):
728 users = self.tables.users

Callers

nothing calls this directly

Calls 7

literal_columnFunction · 0.90
selectFunction · 0.90
expect_raises_messageFunction · 0.90
eq_Function · 0.90
labelMethod · 0.45
firstMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected