mirror of
https://github.com/django/django.git
synced 2025-07-13 16:25:13 +00:00
Fixed #32687 -- Restored passing process’ environment to underlying tool in dbshell on PostgreSQL.
Regression in bbe6fbb876
.
This commit is contained in:
parent
1871182031
commit
6e742dabc9
5 changed files with 21 additions and 5 deletions
|
@ -39,7 +39,7 @@ class PostgreSqlDbshellCommandTestCase(SimpleTestCase):
|
|||
'PORT': '444',
|
||||
}), (
|
||||
['psql', '-U', 'someuser', '-h', 'somehost', '-p', '444', 'dbname'],
|
||||
{},
|
||||
None,
|
||||
)
|
||||
)
|
||||
|
||||
|
@ -134,7 +134,7 @@ class PostgreSqlDbshellCommandTestCase(SimpleTestCase):
|
|||
def test_parameters(self):
|
||||
self.assertEqual(
|
||||
self.settings_to_cmd_args_env({'NAME': 'dbname'}, ['--help']),
|
||||
(['psql', 'dbname', '--help'], {}),
|
||||
(['psql', 'dbname', '--help'], None),
|
||||
)
|
||||
|
||||
@skipUnless(connection.vendor == 'postgresql', 'Requires a PostgreSQL connection')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue