MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _assert_no_data

Method _assert_no_data

test/engine/test_execute.py:317–322  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

315 return go
316
317 def _assert_no_data(self):
318 with testing.db.connect() as conn:
319 eq_(
320 conn.scalar(select(func.count("*")).select_from(self.table)),
321 0,
322 )
323
324 def _assert_fn(self, x, value=None):
325 with testing.db.connect() as conn:

Calls 6

eq_Function · 0.90
selectFunction · 0.90
connectMethod · 0.45
scalarMethod · 0.45
select_fromMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected