vendredi 9 février 2018

Is there a way to run tests in Django without creating database?

I'm getting an error in a simple functional test that I suspect is related to creating a large database. The error is

ConnectionRefusedError: [Errno 111] Connection refused

It takes sometime until database is created and to test if the error is related to this, I would run the test without creating the test database.

Is it possible to run tests with python manage.py test functional_test.py skipping the database creation?

Aucun commentaire:

Enregistrer un commentaire