sqlite以外でテストをする場合は、setupでmanagement.call_command('flush', interactive=False)

kkotyykkotyy のブックマーク 2017/04/13 15:01

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

Can Django flush its database(s) between every unit test?

    Django (1.2 beta) will reset the database(s) between every test that runs, meaning each test runs on an empty DB. However, the database(s) are not flushed. One of the effects of flushing the databa...

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう