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

Method _assert_no_data

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

Source from the content-addressed store, hash-verified

311 return go
312
313 def _assert_no_data(self):
314 with testing.db.connect() as conn:
315 eq_(
316 conn.scalar(select(func.count("*")).select_from(self.table)),
317 0,
318 )
319
320 def _assert_fn(self, x, value=None):
321 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