diff options
| author | Claude Paroz <claude@2xlibre.net> | 2013-01-04 13:55:20 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2013-01-04 13:55:20 +0100 |
| commit | b740da3504ea3b9c841f5a9eb14191a0b5410565 (patch) | |
| tree | 09c12d38e892a4f4333216fc4847d0f747c8419b /django/db/backends/dummy | |
| parent | 850630b4b7e79b76ad9732db1be6a2aa4257893f (diff) | |
Fixed #19192 -- Allowed running tests with dummy db backend
Thanks Simon Charette for the initial patch, and Jan Bednařík for
his work on the ticket.
Diffstat (limited to 'django/db/backends/dummy')
| -rw-r--r-- | django/db/backends/dummy/base.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/django/db/backends/dummy/base.py b/django/db/backends/dummy/base.py index 12a940d3a2..b648aae9c9 100644 --- a/django/db/backends/dummy/base.py +++ b/django/db/backends/dummy/base.py @@ -31,6 +31,10 @@ class DatabaseOperations(BaseDatabaseOperations): class DatabaseClient(BaseDatabaseClient): runshell = complain +class DatabaseCreation(BaseDatabaseCreation): + create_test_db = ignore + destroy_test_db = ignore + class DatabaseIntrospection(BaseDatabaseIntrospection): get_table_list = complain get_table_description = complain @@ -64,6 +68,6 @@ class DatabaseWrapper(BaseDatabaseWrapper): self.features = BaseDatabaseFeatures(self) self.ops = DatabaseOperations(self) self.client = DatabaseClient(self) - self.creation = BaseDatabaseCreation(self) + self.creation = DatabaseCreation(self) self.introspection = DatabaseIntrospection(self) self.validation = BaseDatabaseValidation(self) |
