jeudi 2 juin 2016

Running Unit Tests Django locally

I have a Django project, running on VM with Vagrant. My Database is on Vagrant. My project is in a shared folder from my pc and Vagrant.

Till now when I want to run unit tests, I always have to run shell on Vagrant :

python manage.py shell

It creates test db. Than I have to import the file and run it. Every time I need to change something I need to exit() the shell, and do all steps again.

I wonder if is possible to I create it in my Local machine, by Pycharm, or in some way that simplify testing my scripts.

Thanks

Aucun commentaire:

Enregistrer un commentaire