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

Method test_where_empty

test/sql/test_delete.py:76–90  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

74 )
75
76 def test_where_empty(self):
77 table1 = self.tables.mytable
78
79 with expect_deprecated(
80 r"Invoking and_\(\) without arguments is deprecated"
81 ):
82 self.assert_compile(
83 table1.delete().where(and_()), "DELETE FROM mytable"
84 )
85 with expect_deprecated(
86 r"Invoking or_\(\) without arguments is deprecated"
87 ):
88 self.assert_compile(
89 table1.delete().where(or_()), "DELETE FROM mytable"
90 )
91
92 def test_prefix_with(self):
93 table1 = self.tables.mytable

Callers

nothing calls this directly

Calls 6

expect_deprecatedFunction · 0.90
and_Function · 0.90
or_Function · 0.90
assert_compileMethod · 0.80
whereMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected