MCPcopy Index your code
hub / github.com/zzzeek/sqlalchemy / _assert_stmts

Method _assert_stmts

test/engine/test_execute.py:1769–1783  ·  view source on GitHub ↗
(self, expected, received)

Source from the content-addressed store, hash-verified

1767 Engine._has_events = False
1768
1769 def _assert_stmts(self, expected, received):
1770 list(received)
1771
1772 for stmt, params, posn in expected:
1773 if not received:
1774 assert False, "Nothing available for stmt: %s" % stmt
1775 while received:
1776 teststmt, testparams, testmultiparams = received.pop(0)
1777 teststmt = (
1778 re.compile(r"[\n\t ]+", re.M).sub(" ", teststmt).strip()
1779 )
1780 if teststmt.startswith(stmt) and (
1781 testparams == params or testparams == posn
1782 ):
1783 break
1784
1785 def test_engine_connect(self, testing_engine):
1786 e1 = testing_engine(config.db_url)

Callers 1

test_execute_eventsMethod · 0.95

Calls 5

stripMethod · 0.80
subMethod · 0.80
popMethod · 0.45
compileMethod · 0.45
startswithMethod · 0.45

Tested by

no test coverage detected