File: run_tests.py

package info (click to toggle)
alembic 1.0.0-2~bpo9+2
  • links: PTS, VCS
  • area: main
  • in suites: stretch-backports
  • size: 2,088 kB
  • sloc: python: 22,563; makefile: 95; sh: 10
file content (17 lines) | stat: -rwxr-xr-x 477 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import os
# use bootstrapping so that test plugins are loaded
# without touching the main library before coverage starts
bootstrap_file = os.path.join(
    os.path.dirname(__file__), "alembic",
    "testing", "plugin", "bootstrap.py"
)

with open(bootstrap_file) as f:
    code = compile(f.read(), "bootstrap.py", 'exec')
    to_bootstrap = "nose"
    exec(code, globals(), locals())


from noseplugin import NoseSQLAlchemy
import nose
nose.main(addplugins=[NoseSQLAlchemy()])