{"version":"1.0","url":"https://pc.atsuhiro-me.net/entry/2023/09/06/174207","categories":["Django"],"author_name":"atsuhiro-me","height":"190","type":"rich","description":"Django \u3067\u5358\u4f53\u30c6\u30b9\u30c8\u3092\u4f5c\u6210\u3057\u3066\u3044\u308b\u3068\u304d\u306b\uff0cPython \u306e unittest \u3092\u7d99\u627f\u3057\u3066\u3044\u308b*1\u304b\u3089\u3068\u601d\u3063\u3066\uff0c\u30af\u30e9\u30b9\u306e\u521d\u671f\u5316\u3092 setUpClass() \u95a2\u6570\u306b\u8a18\u8f09\u3057\u3066\u307e\u3057\u305f\uff0e class DummyTest(TestCase): @classmethod def setUpClass(cls): ... setUpTestData()\u95a2\u6570\u3092\u4f7f\u3046 \u3042\u308b\u6642\u306b tearDownClass() \u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\uff0e AttributeError: type object '***' has no attribute 'cls_atomics' Django \u306e\u30c9\u30ad\u30e5\u2026","image_url":null,"width":"100%","provider_name":"Hatena Blog","title":"Django TestCase \u3067 tearDownClass \u306e\u30a8\u30e9\u30fc","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpc.atsuhiro-me.net%2Fentry%2F2023%2F09%2F06%2F174207\" title=\"Django TestCase \u3067 tearDownClass \u306e\u30a8\u30e9\u30fc - \u307f\u30fc\u306e\u307a\u30fc\u3058\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2023-09-06 17:42:07","blog_title":"\u307f\u30fc\u306e\u307a\u30fc\u3058","blog_url":"https://pc.atsuhiro-me.net/","author_url":"https://blog.hatena.ne.jp/atsuhiro-me/","provider_url":"https://hatena.blog"}