introduce a pytest_collect_metainfo hook
--HG-- branch : trunk
This commit is contained in:
@@ -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."""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user