Opened 9 years ago
Closed 9 years ago
#25357 closed Bug (fixed)
setup_databases doesn't deduplicate databases correctly on Oracle
Description ¶
The short version is that, when setup_databases
detects that two databases are identical, it does connection.settings_dict['NAME'] = ...
instead of calling connection.creation.set_as_test_mirror()
.
I'm going to attach a project that allows reproducing the issue. (Unfortunately, we don't have a convenient way to test the test runner's database creation features.)
If you set DATABASES = DATABASES_POSTGRES
in the settings, the test passes.
If you set DATABASES = DATABASES_ORACLE
in the settings, the test fails with myapp.models.DoesNotExist: MyModel matching query does not exist.
.
Change History (3)
by , 9 years ago
Attachment: | oracle_test_mirror.tar.gz added |
---|
comment:1 by , 9 years ago
Has patch: | set |
---|
https://github.com/django/django/pull/5237