#33685: Tests crash when using only a service name on PostgreSQL. -----------------------------------+------------------------------------ Reporter: Shane Ambler | Owner: nobody Type: Bug | Status: new Component: Testing framework | Version: 4.0 Severity: Normal | Resolution: Keywords: | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -----------------------------------+------------------------------------ Changes (by Mariusz Felisiak):
* stage: Unreviewed => Accepted Comment: > While you are maintaining both old and new config variations, all will continue to work for you. > > If you remove the old, no longer documented, settings of `HOST` `PORT` `NAME` `USER` then your setup will work for `runserver` but not `test` > The pg docs [https://docs.djangoproject.com/en/4.0/ref/databases /#postgresql-notes-1] only documents the new method of specifying `service` and `passfile` in the `OPTIONS` ... Using `['OPTIONS']['service']` and `['OPTIONS']['passfile']` is not a "new" or only supported way for the `DATABASES` settings. It's a PostgreSQL-specific option that you may use that's why it's documented only in the ''"PostgreSQL notes"''. Using `HOST`, `PORT`, `NAME`, `USER`, and `PASSWORD` is still fully supported for PostgreSQL, see [https://docs.djangoproject.com/en/4.0/ref/settings/#databases docs]. > ... this documented setup **does not support running tests** with postgresql databases. `NAME` is used in many places for test setup, including cloning a test database, that's why it doesn't work with only `service` specified. -- Ticket URL: <https://code.djangoproject.com/ticket/33685#comment:8> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/01070180ac5b18e9-55855f80-9410-466b-83a0-83c92cbd738b-000000%40eu-central-1.amazonses.com.