Getting error while running tests for postgis

34 views
Skip to first unread message

Pratik kumar

unread,
Jan 23, 2020, 2:08:15 PM1/23/20
to Django developers (Contributions to Django itself)
I was running the test With for GeoDjnago using the following commands
./runtests.py --settings=postgis
with the following settings file
DATABASES = {
   
'default': {
       
'ENGINE': 'django.contrib.gis.db.backends.postgis',
       
'NAME':'defaultd',
       
'USER': 'user',
       
'PASSWORD':'password',
       
'HOST': '127.0.0.1',
       
'PORT': '5432',
   
},
   
'other': {
       
'ENGINE': 'django.contrib.gis.db.backends.postgis',
       
'NAME':'otherd',
       
'USER': 'user',
       
'PASSWORD':'password',
       
'HOST': '127.0.0.1',
       
'PORT': '5432',
   
}
}
SECRET_KEY
= 'django_tests_secret_key'
Got the following error, can't seem to understand the reason behind it. how can i remove it

Screenshot from 2020-01-23 23-54-14.png


Also when i run test specifically for geoDjango there are 13 tests which are skipped how to avoid skipping those tests.

Any help will be appreciated

Confidence Yobo

unread,
Jan 23, 2020, 2:28:21 PM1/23/20
to django-d...@googlegroups.com
I'm sorry but you have found the wrong mailing list for this post.
This mailing list is about the development of django itself. If you have any issues with your code I suggest you ask in any programmers community like stackoverflow or reddit.

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/3515bc07-8e53-4c61-8838-e074b36f1b0a%40googlegroups.com.

Tim Graham

unread,
Jan 23, 2020, 2:34:49 PM1/23/20
to Django developers (Contributions to Django itself)
Actually, this is somewhat on topic as it involves running the Django test suite.

To solve the failure, add this to your test settings:

PASSWORD_HASHERS = [
    'django.contrib.auth.hashers.MD5PasswordHasher',
]

It seems like a bug that that test assumes MD5PasswordHasher.

As for the skipped tests, the skips might be expected. Run runtests.py with "-v 2" to see the reason.

Pratik kumar

unread,
Jan 23, 2020, 2:35:42 PM1/23/20
to Django developers (Contributions to Django itself)
I am working on a ticket need to run tests for postgis, isn't it concerned with the development of django itself?
Reply all
Reply to author
Forward
0 new messages