#14439: Running the GIS testsuite is very hard. ---------------------------------+------------------------------------------ Reporter: lukeplant | Owner: nobody Status: closed | Milestone: Component: GIS | Version: 1.2 Resolution: invalid | Keywords: Stage: Unreviewed | Has_patch: 0 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | ---------------------------------+------------------------------------------ Comment (by lukeplant):
I was looking for somewhere that would tell me what I need to know to run the GeoDjango tests, and found it frustrating that after more than an hour I hadn't been able to collect enough information from the different parts of the docs to be able to do this. I have finally succeeded in running them, at least with PostGIS. AFAICS, the process is to do something like: 1. Following the installation instructions for GeoDjango, and set up users/databases etc. 2. Create a throw-away a project using `django-admin.py startproject` 3. Change the settings to use the `django.contrib.gis.db.backends.postgis` backend 4. Add `TEST_RUNNER='django.contrib.gis.tests.run_gis_tests'` to the settings file (or, better, `'django.contrib.gis.tests.GeoDjangoTestSuiteRunner'`, since the former produces deprecation warnings) Number 1 is obvious, number 4 is documented [http://docs.djangoproject.com/en/1.2/ref/contrib/gis/testing/#geodjango- test-suite here], but the rest is not obvious from the perspective of someone just wanting to run the tests. It's absolutely fair enough to close as INVALID, since it's a pretty vague report, and I don't know what to do about it either. But I thought it was worthwhile noting it to someone. -- Ticket URL: <http://code.djangoproject.com/ticket/14439#comment:6> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.