summaryrefslogtreecommitdiff
path: root/sqla_nose.py
blob: e6f60e47671e91238d3065efff97b49be5100e58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env python
"""
nose runner script.

This script is a front-end to "nosetests" which
installs SQLAlchemy's testing plugin into the local environment.

"""
import sys

from os import path
for pth in ['.', './lib']:
    sys.path.insert(0, path.join(path.dirname(path.abspath(__file__)), pth))

from test.bootstrap.noseplugin import NoseSQLAlchemy

import nose

if __name__ == '__main__':
    nose.main(addplugins=[NoseSQLAlchemy()])