How to recreate the database for every Django test case?

I want to write test cases for django that use the database and change its entries. I want to create a new database for every test. How do I force django to delete the entire database after every testcase (either for every function or for every class)?

I hope it doesn't matter, but I use SQLite.

Вернуться на верх