<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nainaistar</author_name>
  <author_url>https://blog.hatena.ne.jp/nainaistar/</author_url>
  <blog_title>きり丸の技術日記</blog_title>
  <blog_url>https://nainaistar.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>テスト</anon>
    <anon>技術</anon>
  </categories>
  <description>JUnit 5だと@Nestedアノテーションを付与すると、テストクラス内にさらにテストクラスを用意できます。 Pytestでも同様にテストクラスをネストさせたかったのですが、ググってもすぐには出てこなかったので、自分のブログにまとめます。 環境 Pytest 7.1.1 分かること Pytestでネストしたテストクラスを書ける @pytest.fixtureを使用してもネストしたテストクラスを書ける ユースケース テストクラスを特定の粒度ごとに作成する。 最低でも、テストクラス -&gt; テストメソッドの1段落ネストしておくのはオススメです。 - テストクラス1 - テストメソッド1 - テスト…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnainaistar.hatenablog.com%2Fentry%2Fpytest-nested-case&quot; title=&quot;Pytestにてネストしたテストケースを作成する - きり丸の技術日記&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/n/nainaistar/20220321/20220321234838.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-01-02 12:00:00</published>
  <title>Pytestにてネストしたテストケースを作成する</title>
  <type>rich</type>
  <url>https://nainaistar.hatenablog.com/entry/pytest-nested-case</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
