MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _setup_engine

Function _setup_engine

lib/sqlalchemy/testing/plugin/plugin_base.py:611–616  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

609
610
611def _setup_engine(cls):
612 if getattr(cls, "__engine_options__", None):
613 opts = dict(cls.__engine_options__)
614 opts["scope"] = "class"
615 eng = engines.testing_engine(options=opts)
616 config._current.push_engine(eng, testing)
617
618
619def before_test(test, test_module_name, test_class, test_name):

Callers 1

Calls 2

testing_engineMethod · 0.80
push_engineMethod · 0.80

Tested by

no test coverage detected