mirror of
https://github.com/django/django.git
synced 2025-10-29 08:36:09 +00:00
[3.2.x] Fixed #32687 -- Restored passing process’ environment to underlying tool in dbshell on PostgreSQL.
Regression inbbe6fbb876. Backport of6e742dabc9from main.
This commit is contained in:
committed by
Mariusz Felisiak
parent
34981f399a
commit
55cb3c8ac1
@@ -39,7 +39,7 @@ class PostgreSqlDbshellCommandTestCase(SimpleTestCase):
|
||||
'PORT': '444',
|
||||
}), (
|
||||
['psql', '-U', 'someuser', '-h', 'somehost', '-p', '444', 'dbname'],
|
||||
{},
|
||||
None,
|
||||
)
|
||||
)
|
||||
|
||||
@@ -100,7 +100,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')
|
||||
|
||||
Reference in New Issue
Block a user