<?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>ランキング参加中Python 背景 Pythonユーザー初級〜中級者の方にとって、 書いたコードの正しさを効率的にテストしたい と考えるのではないでしょうか。 Pythonには、テストフレームワークはいくつもありますが、pytestの人気が高いことは明らかです。 そこで、今回は今すぐ始められるpytestの使い方について紹介します。 サンプルコード まずは、サンプルコードです。 github.com 以下のようなディレクトリ構成があるとします。 src/ ┣ scripts/ ┃ ┣ __init__.py ┃ ┗ main.py ┣ tests/ ┃ ┣ __init__.py ┃ ┗ te…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.yuta-nakata.net%2Fentry%2F2024%2F06%2F15%2F123749&quot; title=&quot;【サンプルコード有】今日から始めるpytest - 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/20240615/20240615125736.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-06-15 12:37:49</published>
  <title>【サンプルコード有】今日から始めるpytest</title>
  <type>rich</type>
  <url>https://www.yuta-nakata.net/entry/2024/06/15/123749</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
