{"version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.kyanny.me%2Fentry%2F2020%2F12%2F29%2F121435\" title=\"Django: how to run django unit tests without DB, in a single file - @kyanny&#39;s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","provider_url":"https://hatena.blog","image_url":null,"provider_name":"Hatena Blog","url":"https://blog.kyanny.me/entry/2020/12/29/121435","categories":[],"description":"Sometimes useful to check how the assertion methods Django provides behave without creating a new Django project. call settings.configure() at toplevel call databases = [] at class level call unittest.main() at the bottom gist.github.com \u276f python t.py -v test_not_ok (__main__.InHTMLTestCase) ... FAI\u2026","type":"rich","author_url":"https://blog.hatena.ne.jp/a666666/","blog_title":"@kyanny's blog","published":"2020-12-29 12:14:35","width":"100%","author_name":"a666666","blog_url":"https://blog.kyanny.me/","title":"Django: how to run django unit tests without DB, in a single file"}