Launch django unittest with a new database

122 views Asked by At

The question is in the title.

How can I run the unit tests with manage.py test from the command line without having to type yes if an old test database hasn't been destroyed(this happens when the tests are aborted).

thanks

1

There are 1 answers

0
Alasdair On BEST ANSWER

Try using the --noinput option (--no-input is an alternative alias in Django 1.9+).

./manage.py test --noinput