summaryrefslogtreecommitdiff
path: root/sqla_nose.py
blob: 09481410c2d54aae7f933aead6baa27da0e73970 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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

nose.main(addplugins=[NoseSQLAlchemy()])