mirror of
https://github.com/django/django.git
synced 2025-10-25 06:36:07 +00:00
Fixed #32292 -- Added support for connection by service name to PostgreSQL.
This commit is contained in:
committed by
Mariusz Felisiak
parent
f054468cac
commit
dcb3ad3319
@@ -67,6 +67,12 @@ class PostgreSqlDbshellCommandTestCase(SimpleTestCase):
|
||||
)
|
||||
)
|
||||
|
||||
def test_service(self):
|
||||
self.assertEqual(
|
||||
self.settings_to_cmd_args_env({'OPTIONS': {'service': 'django_test'}}),
|
||||
(['psql', 'postgres'], {'PGSERVICE': 'django_test'}),
|
||||
)
|
||||
|
||||
def test_column(self):
|
||||
self.assertEqual(
|
||||
self.settings_to_cmd_args_env({
|
||||
|
||||
Reference in New Issue
Block a user