From a8cfd54871640bf4bcceafc9ae82ffaa33feda48 Mon Sep 17 00:00:00 2001 From: palaviv Date: Sat, 19 Mar 2016 21:23:49 +0200 Subject: [PATCH] added test for None in idmaker --- testing/python/metafunc.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/testing/python/metafunc.py b/testing/python/metafunc.py index faa687f40..75bd350c3 100644 --- a/testing/python/metafunc.py +++ b/testing/python/metafunc.py @@ -258,6 +258,13 @@ class TestMetafunc: "three-b2", ] + def test_idmaker_with_ids(self): + from _pytest.python import idmaker + result = idmaker(("a", "b"), [(1, 2), + (3, 4)], + ids=["a", None]) + assert result == ["a", "3-4"] + def test_addcall_and_parametrize(self): def func(x, y): pass metafunc = self.Metafunc(func)