サクサク読めて、アプリ限定の機能も多数!
sqlite以外でテストをする場合は、setupでmanagement.call_command('flush', interactive=False)
kkotyy のブックマーク 2017/04/13 15:01
Can Django flush its database(s) between every unit test?[django]sqlite以外でテストをする場合は、setupでmanagement.call_command('flush', interactive=False)2017/04/13 15:01
このブックマークにはスターがありません。 最初のスターをつけてみよう!
stackoverflow.com2012/08/13
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...
2 人がブックマーク・1 件のコメント
\ コメントが サクサク読める アプリです /
sqlite以外でテストをする場合は、setupでmanagement.call_command('flush', interactive=False)
kkotyy のブックマーク 2017/04/13 15:01
このブックマークにはスターがありません。
最初のスターをつけてみよう!
Can Django flush its database(s) between every unit test?
stackoverflow.com2012/08/13
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...
2 人がブックマーク・1 件のコメント
\ コメントが サクサク読める アプリです /