5
This script is an extension to py.test which
6
installs SQLAlchemy's testing plugin into the local environment.
12
if not sys.flags.no_user_site:
16
os.path.dirname(os.path.abspath(__file__)), '..', 'lib')
19
# use bootstrapping so that test plugins are loaded
20
# without touching the main library before coverage starts
21
bootstrap_file = os.path.join(
22
os.path.dirname(__file__), "..", "lib", "sqlalchemy",
23
"testing", "plugin", "bootstrap.py"
26
with open(bootstrap_file) as f:
27
code = compile(f.read(), "bootstrap.py", 'exec')
28
to_bootstrap = "pytest"
29
exec(code, globals(), locals())
30
from pytestplugin import * # noqa