mirror of
https://github.com/django/django.git
synced 2025-10-14 12:29:12 +00:00
Changed django.test.utils.create_test_db to return the name of the test database that was created
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5910 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
89ebb6177d
commit
49c438fd21
2 changed files with 9 additions and 0 deletions
|
@ -988,6 +988,9 @@ a number of utility methods in the ``django.test.utils`` module.
|
|||
``create_test_db()`` has the side effect of modifying
|
||||
``settings.DATABASE_NAME`` to match the name of the test database.
|
||||
|
||||
New in the Django development version, this function returns the name of
|
||||
the test database that it created.
|
||||
|
||||
``destroy_test_db(old_database_name, verbosity=1)``
|
||||
Destroys the database whose name is in the ``DATABASE_NAME`` setting
|
||||
and restores the value of ``DATABASE_NAME`` to the provided name.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue