MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_None_and_val

Method test_None_and_val

test/sql/test_compiler.py:7873–7875  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

7871 self.assert_compile(and_(t.c.id == 1, None), "foo.id = :id_1 AND NULL")
7872
7873 def test_None_and_val(self):
7874 t = self._fixture()
7875 self.assert_compile(and_(None, t.c.id == 1), "NULL AND foo.id = :id_1")
7876
7877 def test_None_and_nothing(self):
7878 # current convention is None in and_()

Callers

nothing calls this directly

Calls 3

_fixtureMethod · 0.95
and_Function · 0.90
assert_compileMethod · 0.80

Tested by

no test coverage detected