diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-03-03 13:41:38 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-03-03 13:41:38 -0500 |
commit | 23d9778514fef648285010a36009fca9bb953cad (patch) | |
tree | 1695aae012dc71a3b4d05fa0ef194d545e3c0127 | |
parent | a203233a1196496499c1518242dcafd95d297796 (diff) | |
download | sqlalchemy-23d9778514fef648285010a36009fca9bb953cad.tar.gz |
figure out module location a bit better
-rw-r--r-- | lib/sqlalchemy/testing/plugin/pytestplugin.py | 7 | ||||
-rw-r--r-- | setup.cfg | 2 |
2 files changed, 3 insertions, 6 deletions
diff --git a/lib/sqlalchemy/testing/plugin/pytestplugin.py b/lib/sqlalchemy/testing/plugin/pytestplugin.py index 841029751..0576ba6c5 100644 --- a/lib/sqlalchemy/testing/plugin/pytestplugin.py +++ b/lib/sqlalchemy/testing/plugin/pytestplugin.py @@ -2,6 +2,7 @@ import pytest import argparse import inspect from . import plugin_base +import collections def pytest_addoption(parser): group = parser.getgroup("sqlalchemy") @@ -27,7 +28,6 @@ def pytest_configure(config): plugin_base.post_begin() -import collections def pytest_collection_modifyitems(session, config, items): # look for all those classes that specify __multiple__ and # expand them out into per-database test cases. @@ -68,11 +68,8 @@ def pytest_collection_modifyitems(session, config, items): ) + def pytest_pycollect_makeitem(collector, name, obj): - # how come if I catch "Module" objects here directly - # and return [] for those I don't want, - # that doesn't seem to change the results? I need to filter - # modules after I get the individual functions... if inspect.isclass(obj) and plugin_base.want_class(obj): return pytest.Class(name, parent=collector) @@ -10,7 +10,7 @@ where = test [pytest] addopts= --tb native -v -r fxX -python_files=test/* +python_files=test/*test_*.py [upload] sign = 1 |