Opened 9 years ago

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

Download all attachments as: .zip

Change History (5)

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

Attachment: test_db_creation.patch added

Patch for test database creation clarification

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

Has patch: set
Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Summary: Setting database for testing[patch] Setting database for testing
Triage Stage: UnreviewedAccepted

comment:2 Changed 9 years ago by Malcolm Tredinnick

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

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

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

Triage Stage: AcceptedReady for checkin

comment:4 Changed 9 years ago by Malcolm Tredinnick

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