Code

Opened 7 years ago

Closed 7 years ago

#3936 closed (fixed)

Setting database for testing

Reported by: anonymous Owned by: jacob
Component: Documentation Version: master
Severity: Keywords: testing database
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Documentation on http://www.djangoproject.com/documentation/testing/ should mention, that the test database will be created by user DATABASE_USER (so, the user must be created like CREATE user someuser WITH ENCRYPTED PASSWORD 'password' CREATEDB).

There is also need to have appropriate line in /usr/local/pgsql/data/pg_hba.conf (like local database_name username trust).

This note is relevant only for PostgreSQL database, I have no similar experience with MySQL or SQLite

Attachments (1)

test_db_creation.patch (610 bytes) - added by Vinay Sajip <vinay_sajip@…> 7 years ago.
Patch for test database creation clarification

Download all attachments as: .zip

Change History (5)

Changed 7 years ago by Vinay Sajip <vinay_sajip@…>

Patch for test database creation clarification

comment:1 Changed 7 years ago by Vinay Sajip <vinay_sajip@…>

  • Has patch set
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Summary changed from Setting database for testing to [patch] Setting database for testing
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 7 years ago by mtredinnick

  • Summary changed from [patch] Setting database for testing to Setting database for testing

Removing [patch] from title. We have the checkbox for that.

comment:3 Changed 7 years ago by Vinay Sajip <vinay_sajip@…>

  • Triage Stage changed from Accepted to Ready for checkin

comment:4 Changed 7 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from new to closed

(In [5168]) Fixed #3936 -- Mentioned that the DATABASE_USER in the test settings file needs
permission to create a new database on the system. Patch from Vinay Sajip.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.