Changeset 5910
- Timestamp:
- 08/16/07 17:46:00 (1 year ago)
- Files:
-
- django/trunk/django/test/utils.py (modified) (2 diffs)
- django/trunk/docs/testing.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/test/utils.py
r5899 r5910 91 91 92 92 def create_test_db(verbosity=1, autoclobber=False): 93 """ 94 Creates a test database, prompting the user for confirmation if the 95 database already exists. Returns the name of the test database created. 96 """ 93 97 # If the database backend wants to create the test DB itself, let it 94 98 creation_module = get_creation_module() … … 154 158 cursor = connection.cursor() 155 159 160 return TEST_DATABASE_NAME 161 156 162 def destroy_test_db(old_database_name, verbosity=1): 157 163 # If the database wants to drop the test DB itself, let it django/trunk/docs/testing.txt
r5904 r5910 989 989 ``settings.DATABASE_NAME`` to match the name of the test database. 990 990 991 New in the Django development version, this function returns the name of 992 the test database that it created. 993 991 994 ``destroy_test_db(old_database_name, verbosity=1)`` 992 995 Destroys the database whose name is in the ``DATABASE_NAME`` setting
