MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _chaos

Method _chaos

test/ext/test_automap.py:690–702  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

688 configure_mappers()
689
690 def _chaos(self):
691 e = create_engine("sqlite://")
692 try:
693 self._make_tables(e)
694 for i in range(2):
695 try:
696 self._automap(e)
697 except:
698 self._success = False
699 raise
700 time.sleep(random.random())
701 finally:
702 e.dispose()
703
704 def test_concurrent_automaps_w_configure(self):
705 self._success = True

Callers

nothing calls this directly

Calls 5

_make_tablesMethod · 0.95
_automapMethod · 0.95
create_engineFunction · 0.90
randomMethod · 0.80
disposeMethod · 0.45

Tested by

no test coverage detected