MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _test

Method _test

lib/sqlalchemy/testing/suite/test_select.py:1537–1546  ·  view source on GitHub ↗
(self, expr, expected)

Source from the content-addressed store, hash-verified

1535 )
1536
1537 def _test(self, expr, expected):
1538 some_table = self.tables.some_table
1539
1540 with config.db.connect() as conn:
1541 rows = {
1542 value
1543 for value, in conn.execute(select(some_table.c.id).where(expr))
1544 }
1545
1546 eq_(rows, expected)
1547
1548 def test_startswith_unescaped(self):
1549 col = self.tables.some_table.c.data

Calls 5

selectFunction · 0.90
eq_Function · 0.85
connectMethod · 0.45
executeMethod · 0.45
whereMethod · 0.45

Tested by

no test coverage detected