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

Method test_where_empty

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

Source from the content-addressed store, hash-verified

806 )
807
808 def test_where_empty(self):
809 table1 = self.tables.mytable
810 self.assert_compile(
811 table1.update().where(
812 BooleanClauseList._construct_raw(operators.and_)
813 ),
814 "UPDATE mytable SET myid=:myid, name=:name, "
815 "description=:description",
816 )
817 self.assert_compile(
818 table1.update().where(
819 BooleanClauseList._construct_raw(operators.or_)
820 ),
821 "UPDATE mytable SET myid=:myid, name=:name, "
822 "description=:description",
823 )
824
825 def test_prefix_with(self):
826 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