Opened 15 years ago

Last modified 13 years ago

#10397 closed

Add support for DATABASE_SUPPORTS_TRANSACTIONS to django.contrib.gis.tests.run_tests — at Initial Version

Reported by: Malcolm Tredinnick Owned by: nobody
Component: GIS Version: 1.0
Severity: Keywords: create_spatial_db gis tests
Cc: Almad Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

After r9756, it's no longer possible to run a full test suite for a set of applications (a Django "project") when using the gis test runner. This is because we need to set up DATABASE_SUPPORTS_TRANSACTIONS, which is used by, at a minimum, the auth tests.

This seems like the tip of the iceberg in some ways, though. There's already a handy function to help with this, but it's part of django.db.backends.creation.BaseDatabaseCreation, which django.contrib.gis doesn't use at all for creating test databases. I suspect the solution is to break up the BaseDatabaseCreation class into basic stuff and test stuff so that gis can use the subclass the latter.

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top