{"provider_url":"https://hatena.blog","categories":["Python","pytest"],"width":"100%","url":"https://www.yuta-nakata.net/entry/2025/01/10/122243","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/y/yuta-nakata/20250105/20250105203504.png","author_url":"https://blog.hatena.ne.jp/yuta-nakata/","blog_url":"https://www.yuta-nakata.net/","provider_name":"Hatena Blog","title":"Python\u30c6\u30b9\u30c8\u81ea\u52d5\u5316: pytest.mark.parametrize\u306e\u4f7f\u3044\u65b9\u3068\u5b9f\u8df5\u4f8b","author_name":"yuta-nakata","height":"190","version":"1.0","blog_title":"Yuta Nakata\u306eBlog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.yuta-nakata.net%2Fentry%2F2025%2F01%2F10%2F122243\" title=\"Python\u30c6\u30b9\u30c8\u81ea\u52d5\u5316: pytest.mark.parametrize\u306e\u4f7f\u3044\u65b9\u3068\u5b9f\u8df5\u4f8b - Yuta Nakata\u306eBlog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u306f\u3058\u3081\u306b \u672c\u8a18\u4e8b\u3067\u306f\u3001pytest\u306e\u30c7\u30b3\u30ec\u30fc\u30bf\u3067\u3042\u308b@pytest.mark.parametrize\u306b\u3064\u3044\u3066\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002 \u3053\u306e\u8a18\u4e8b\u3067\u6319\u3052\u308b\u30dd\u30a4\u30f3\u30c8 @pytest.mark.parametrize\u306e\u4f7f\u3044\u65b9\u3068\u30e1\u30ea\u30c3\u30c8 \u3053\u306e\u8a18\u4e8b\u3067\u6319\u3052\u306a\u3044\u30dd\u30a4\u30f3\u30c8 pytest\u306e\u57fa\u672c\u6982\u5ff5\u3084\u8aac\u660e pytest\u3092\u7528\u3044\u305fassert\u306b\u3088\u308b\u5358\u4f53\u30c6\u30b9\u30c8 \u95a2\u6570\u3092\u30d1\u30e9\u30e1\u30fc\u30bf\u5316\u3059\u308b @pytest.mark.parametrize\u306e\u4f7f\u3044\u65b9\u3092\u8aac\u660e\u3059\u308b\u305f\u3081\u3001\u4e0b\u8a18\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002 import pytest def double(x: int) -> int: return x * 2 @pytest.mark\u2026","published":"2025-01-10 12:22:43","type":"rich"}