jeudi 22 janvier 2015

Heroku won't allow me to rename DB and thus can't run Django unit tests?

I'm trying to run Django tests via python manage.py test --settings="app.test-settings"


Settings File Below



from settings import *
DATABASES = {
'default': {
'ENGINE': 'django.contrib.gis.db.backends.postgis',
'NAME': 'dbname',
'HOST': 'ec2-54-83-38-90.compute-1.amazonaws.com',
'PORT': '5802',
'USER': 'user',
'PASSWORD': 'pass'
}
}


Problem Django keeps trying to create a db prepended with test_ but Heroku doesn't allow me to change the db name.


I can't use sqlite because I have modules that utilize the POSTGIS options of the db. Which through errors and kill the tests...


Is there a way to do this without blowing up the Django source code? As I'd need to get this to be able to run on CircleCI.


As always thanks!


Aucun commentaire:

Enregistrer un commentaire