<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kakku22</author_name>
  <author_url>https://blog.hatena.ne.jp/kakku22/</author_url>
  <blog_title>kakakakakku blog</blog_title>
  <blog_url>https://kakakakakku.hatenablog.com/</blog_url>
  <categories>
    <anon>AWS</anon>
    <anon>Python</anon>
    <anon>Testcontainers</anon>
    <anon>Moto</anon>
  </categories>
  <description>Moto で AWS サービスをモックして AWS SDK for Python (Boto3) を使った Python コードをテストする場合に @mock_aws デコレータや with ブロックを使うという選択肢がある．詳しくは以下のドキュメントに載っている📝 docs.getmoto.org また Moto には「Server Mode」というコンテナベースで起動する方法もある😀 docs.getmoto.org 普段 pytest を使って Python コードをテストする場合は MySQL や LocalStack などの依存関係を Testcontainers for Pytho…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkakakakakku.hatenablog.com%2Fentry%2F2024%2F11%2F11%2F083042&quot; title=&quot;Testcontainers for Python と Moto を組み合わせて Boto3 を使った Python コードをテストする - kakakakakku 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/k/kakku22/20241105/20241105225440.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-11-11 08:30:42</published>
  <title>Testcontainers for Python と Moto を組み合わせて Boto3 を使った Python コードをテストする</title>
  <type>rich</type>
  <url>https://kakakakakku.hatenablog.com/entry/2024/11/11/083042</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
