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

@@ -1159,7 +1159,7 @@ class TestMarkersWithParametrization:
def test_pytest_make_parametrize_id(self, testdir):
testdir.makeconftest("""
def pytest_make_parametrize_id(val):
def pytest_make_parametrize_id(config, val):
return str(val * 2)
""")
testdir.makepyfile("""