Django

Code

Ticket #1216 (closed: fixed)

Opened 3 years ago

Last modified 3 years ago

possible problem with runtests and database creation - some setups miss creation rights for users

Reported by: hugo Assigned to: jacob
Milestone: Component: Documentation
Version: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

There might be a problem with the unit tests in some situations: the database creation depends on the user to have the rights to do it. It might be useful to have a short part talk about using SQLite for those situations, because that won't need those rights. And maybe the code could be made to accept an optional database name from the command line, so the user can explicitely give a database name for testing (of an already existing and empty database).

Typical setups where this is a problem are PostgreSQL on Debian systems: users can be created with or without the right to create databases or the config might prevent access of users to databases that are named differently (the default setup of PostgreSQL does that on Debian if you access over unix sockets).

Attachments

Change History

05/04/06 23:27:18 changed by adrian

  • status changed from new to closed.
  • resolution set to fixed.

(In [2846]) Fixed #1216 -- Noted in docs/contributing.txt 'Unit tests' section that the user needs permission to create a database

05/05/06 00:07:25 changed by ubernostrum

Just double-checked, and still seeing it in Firefox on the Mac with an SVN checkout from a couple days ago.


Add/Change #1216 (possible problem with runtests and database creation - some setups miss creation rights for users)




Change Properties
Action