diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-09-27 02:37:33 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-09-27 02:37:33 -0400 |
commit | 20cdc64588b0f6ae52f8380c11d0ed848005377b (patch) | |
tree | 08f6cc8f82263f1e402c1c05c83b66a1f4b016ac /sqla_nose.py | |
parent | 21cac5b598a83ef0e24423dc523629b475aa3af0 (diff) | |
download | sqlalchemy-20cdc64588b0f6ae52f8380c11d0ed848005377b.tar.gz |
trying different approaches to test layout. in this one, the testing modules
become an externally usable package but still remains within the main sqlalchemy parent package.
in this system, we use kind of an ugly hack to get the noseplugin imported outside of the
"sqlalchemy" package, while still making it available within sqlalchemy for usage by
third party libraries.
Diffstat (limited to 'sqla_nose.py')
-rwxr-xr-x | sqla_nose.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sqla_nose.py b/sqla_nose.py index 09481410c..290fc760e 100755 --- a/sqla_nose.py +++ b/sqla_nose.py @@ -9,10 +9,11 @@ installs SQLAlchemy's testing plugin into the local environment. import sys from os import path -for pth in ['.', './lib']: +for pth in ['.', './lib', './lib/sqlalchemy/testing']: sys.path.insert(0, path.join(path.dirname(path.abspath(__file__)), pth)) -from test.bootstrap.noseplugin import NoseSQLAlchemy + +from plugin.noseplugin import NoseSQLAlchemy import nose |