Refs #32292 -- Made dbshell do not use 'postgres' database when service name is set.

Regression in dcb3ad3319.
This commit is contained in:
Mariusz Felisiak 2021-02-26 20:53:01 +01:00 committed by GitHub
parent 9d7e31cc74
commit 8908846444
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View file

@ -70,7 +70,7 @@ class PostgreSqlDbshellCommandTestCase(SimpleTestCase):
def test_service(self):
self.assertEqual(
self.settings_to_cmd_args_env({'OPTIONS': {'service': 'django_test'}}),
(['psql', 'postgres'], {'PGSERVICE': 'django_test'}),
(['psql'], {'PGSERVICE': 'django_test'}),
)
def test_column(self):