introduce a pytest_collect_metainfo hook

--HG--
branch : trunk
This commit is contained in:
Samuele Pedroni
2009-05-12 14:50:25 +02:00
parent 69214d053d
commit 4956e00a49
3 changed files with 23 additions and 0 deletions

View File

@@ -53,6 +53,11 @@ class PluginHooks:
""" return custom item/collector for a python object in a module, or None. """
pytest_pycollect_obj.firstresult = True
def pytest_collect_metainfo(self, colitem):
""" return (fspath, lineno, name) for the colitem.
the information is used for result display and to sort tests
"""
def pytest_genfunc(self, funcspec):
""" generate (multiple) parametrized calls to a test function."""