--
Ticket URL: <https://code.djangoproject.com/ticket/23652>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Old description:
> When using connection.creation.destroy_test_db(old_db_name) the
> settings.DATABASES['default']['NAME'] isn't reset to old_db_name like
> described in in
> docs[https://docs.djangoproject.com/en/1.6/topics/testing/advanced/#django.db.connection.creation.destroy_test_db].
New description:
When using connection.creation.destroy_test_db(old_db_name) the
settings.DATABASES default name isn't reset to old_db_name like described
in in
docs[https://docs.djangoproject.com/en/1.6/topics/testing/advanced/#django.db.connection.creation.destroy_test_db].
--
--
Ticket URL: <https://code.djangoproject.com/ticket/23652#comment:1>
* type: Uncategorized => Bug
--
Ticket URL: <https://code.djangoproject.com/ticket/23652#comment:2>
* cc: claudep (added)
* version: 1.6 => 1.7
* stage: Unreviewed => Accepted
Comment:
Behavior changed in e953c78eeb81ee69dccd356145563fd6f9e4c7b6 (1.7).
Claude, I wonder what you think we should do? I'm not sure if we should
update the documentation or the code.
--
Ticket URL: <https://code.djangoproject.com/ticket/23652#comment:3>
Comment (by claudep):
In my commit, I just removed the NAME attribution in a copied dict.
Probably the real commit that changed this is
https://github.com/django/django/commit/f1dc83cb9877d349df88674a0752ddf42657485b
#diff-f0b4f23d2d3eab42aeb0ff91a1b4d9f7L322
So yes, restoring the original database name is currently missing.
--
Ticket URL: <https://code.djangoproject.com/ticket/23652#comment:4>
* has_patch: 0 => 1
Comment:
https://github.com/django/django/pull/3418
--
Ticket URL: <https://code.djangoproject.com/ticket/23652#comment:5>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/23652#comment:6>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"45db842c9bcd6f9afe274c120f43847657473839"]:
{{{
#!CommitTicketReference repository=""
revision="45db842c9bcd6f9afe274c120f43847657473839"
Fixed #23652 -- Restored database name after destroying test database
Thanks Bjarkias for the report.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/23652#comment:7>