jeudi 26 mars 2015

Not able to install fixtures to run Django tests on Jenkins

Here are the commands I use to run tests:



pip install -r requirements.pip
export DJANGO_SETTINGS_MODULE='settings.test'
python manage.py test


And here are database settings from test.py:



DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'app_db_test'
}
}


The error message looks weird to me:



ConnectionError: Problem installing fixture '/var/lib/jenkins/workspace/Django Tests/fixture.json': Error 111 connecting to localhost:6379. Connection refused.


Why localhost:6379 when I'm trying to use sqlite?


Aucun commentaire:

Enregistrer un commentaire