MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_where_empty

Method test_where_empty

test/sql/test_update.py:810–825  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

808 )
809
810 def test_where_empty(self):
811 table1 = self.tables.mytable
812 self.assert_compile(
813 table1.update().where(
814 BooleanClauseList._construct_raw(operators.and_)
815 ),
816 "UPDATE mytable SET myid=:myid, name=:name, "
817 "description=:description",
818 )
819 self.assert_compile(
820 table1.update().where(
821 BooleanClauseList._construct_raw(operators.or_)
822 ),
823 "UPDATE mytable SET myid=:myid, name=:name, "
824 "description=:description",
825 )
826
827 def test_prefix_with(self):
828 table1 = self.tables.mytable

Callers

nothing calls this directly

Calls 4

assert_compileMethod · 0.80
whereMethod · 0.45
updateMethod · 0.45
_construct_rawMethod · 0.45

Tested by

no test coverage detected