<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>thinkAmi</author_name>
  <author_url>https://blog.hatena.ne.jp/thinkAmi/</author_url>
  <blog_title>メモ的な思考的な</blog_title>
  <blog_url>https://thinkami.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>pytest</anon>
  </categories>
  <description>Pythonで日付まわりをテストする場合、日付を固定できる freezegun が便利です。 spulec/freezegun: Let your Python tests travel through time また、pytestの場合、pytestのプラグインとして pytest-freezegun があります。 ktosiek/pytest-freezegun: Easily freeze time in pytest test + fixtures これを使うことで、pytestのmarkerとして @pytest.mark.freeze_time が追加されます。 そのため、mark…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fthinkami.hatenablog.com%2Fentry%2F2019%2F02%2F03%2F211419&quot; title=&quot;pytestを4系にアップデートしたら、pytest-freezegun 0.2.0 でエラーが出た - メモ的な思考的な&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-02-03 21:14:19</published>
  <title>pytestを4系にアップデートしたら、pytest-freezegun 0.2.0 でエラーが出た</title>
  <type>rich</type>
  <url>https://thinkami.hatenablog.com/entry/2019/02/03/211419</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
