mirror of
https://github.com/django/django.git
synced 2025-07-13 16:25:13 +00:00
Fixed #32292 -- Added support for connection by service name to PostgreSQL.
This commit is contained in:
parent
f054468cac
commit
dcb3ad3319
6 changed files with 92 additions and 7 deletions
|
@ -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({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue