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

This script is a front-end to "nosetests" which doesn't
require that SQLA's testing plugin be installed via setuptools.

"""
import sys

try:
    from sqlalchemy_nose.noseplugin import NoseSQLAlchemy
except ImportError:
    from os import path
    sys.path.append(path.join(path.dirname(path.abspath(__file__)), 'lib'))
    from sqlalchemy_nose.noseplugin import NoseSQLAlchemy

import nose

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