vendredi 27 juillet 2018

Django - runserver in "test-mode" with test databases

I'm trying to create tests for my Django application but I'm having some trouble creating a test database.

I'd like to keep the existing structure while entering new curated test-information, creating test users, uploading test content, etc. Which I can then populate a test database with so that I have curated data on which I can test edge-cases.

Creating a test database seems simple, just run python manage.py test --keepdb. Getting entries into it seems more difficult.

Is it possible to run django in "test mode" with the test database being used so that I can use the website UI to enter all the data, or is there some other better way to do it entirely?

Aucun commentaire:

Enregistrer un commentaire