Opened 18 years ago

Closed 18 years ago

#3936 closed (fixed)

Setting database for testing

Reported by: anonymous Owned by: Jacob
Component: Documentation Version: dev
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: no UI/UX: no

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@…> 18 years ago.
Patch for test database creation clarification

Download all attachments as: .zip

Change History (5)

by Vinay Sajip <vinay_sajip@…>, 18 years ago

Attachment: test_db_creation.patch added

Patch for test database creation clarification

comment:1 by Vinay Sajip <vinay_sajip@…>, 18 years ago

Has patch: set
Summary: Setting database for testing[patch] Setting database for testing
Triage Stage: UnreviewedAccepted

comment:2 by Malcolm Tredinnick, 18 years ago

Summary: [patch] Setting database for testingSetting database for testing

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

comment:3 by Vinay Sajip <vinay_sajip@…>, 18 years ago

Triage Stage: AcceptedReady for checkin

comment:4 by Malcolm Tredinnick, 18 years ago

Resolution: fixed
Status: newclosed

(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.

Note: See TracTickets for help on using tickets.
Back to Top