pytest_make_parametrize_id receive config object

This commit is contained in:
palaviv
2016-04-26 10:23:57 +03:00
parent 53429ed8b8
commit 9733127951
3 changed files with 4 additions and 4 deletions

View File

@@ -157,7 +157,7 @@ def pytest_generate_tests(metafunc):
""" generate (multiple) parametrized calls to a test function."""
@hookspec(firstresult=True)
def pytest_make_parametrize_id(val):
def pytest_make_parametrize_id(config, val):
"""Return a user-friendly string representation of the given ``val`` that will be used
by @pytest.mark.parametrize calls. Return None if the hook doesn't know about ``val``.
"""