<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yuta-nakata</author_name>
  <author_url>https://blog.hatena.ne.jp/yuta-nakata/</author_url>
  <blog_title>Yuta NakataのBlog</blog_title>
  <blog_url>https://www.yuta-nakata.net/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>pytest</anon>
  </categories>
  <description>はじめに 本記事では、pytestのデコレータである@pytest.mark.parametrizeについて使い方を解説します。 この記事で挙げるポイント @pytest.mark.parametrizeの使い方とメリット この記事で挙げないポイント pytestの基本概念や説明 pytestを用いたassertによる単体テスト 関数をパラメータ化する @pytest.mark.parametrizeの使い方を説明するため、下記のサンプルコードを見てみましょう。 import pytest def double(x: int) -&gt; int: return x * 2 @pytest.mark…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.yuta-nakata.net%2Fentry%2F2025%2F01%2F10%2F122243&quot; title=&quot;Pythonテスト自動化: pytest.mark.parametrizeの使い方と実践例 - Yuta NakataのBlog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/y/yuta-nakata/20250105/20250105203504.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-01-10 12:22:43</published>
  <title>Pythonテスト自動化: pytest.mark.parametrizeの使い方と実践例</title>
  <type>rich</type>
  <url>https://www.yuta-nakata.net/entry/2025/01/10/122243</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
