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

Method test_bitwise

lib/sqlalchemy/testing/suite/test_select.py:2000–2010  ·  view source on GitHub ↗
(self, case, expected, connection)

Source from the content-addressed store, hash-verified

1998 argnames="case, expected",
1999 )
2000 def test_bitwise(self, case, expected, connection):
2001 tbl = self.tables.bitwise
2002
2003 a = tbl.c.a
2004
2005 op = testing.resolve_lambda(case, a=a)
2006
2007 stmt = select(tbl).where(op > 0).order_by(a)
2008
2009 res = connection.execute(stmt).mappings().all()
2010 eq_(res, [self.inserted_data[i] for i in expected])

Callers

nothing calls this directly

Calls 7

selectFunction · 0.90
eq_Function · 0.85
order_byMethod · 0.45
whereMethod · 0.45
allMethod · 0.45
mappingsMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected