Source

sqlalchemy / sqla_nose.py

Full commit
jason kirtland 6b045d1 
Mike Bayer b6f1d40 


Mike Bayer a96f74b 

Mike Bayer e5baed6 
Mike Bayer b6f1d40 
jason kirtland ee51da9 
Mike Bayer 2d8ef1e 

Mike Bayer 4c84e26 
jason kirtland ee51da9 
Mike Bayer a075b6e 
Mike Bayer c11a9ef 

Mike Bayer a075b6e 
Mike Bayer c11a9ef 

Mike Bayer 2d8ef1e 

Mike Bayer b6f1d40 
Mike Bayer 2d8ef1e 
#!/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
import imp
import nose


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

# installing without importing SQLAlchemy, so that coverage includes
# SQLAlchemy itself.
path = "lib/sqlalchemy/testing/plugin/noseplugin.py"
noseplugin = imp.load_source("noseplugin", path)


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