[Answer]-Coverage.py and setup.py and Django testing

1👍

Well, after a while I found the solution.
Django was not installed globally, which is what I wanted.

I created my virtual environment with:

 virtualenv --enable-system-packages

So this lead to coverage.py not being installed inside my virtualenv. Hence the solution, which was to force pip to install it with -I, here is the full log of actions:

/opt/bin/virtualenv --system-site-packages venv2.7
. venv2.7/bin/activate
pip install -r requirements.txt 
pip install -I coverage
coverage run setup.py test
👤oz123

Leave a comment