summaryrefslogtreecommitdiff
path: root/tests/dbshell/test_postgresql.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dbshell/test_postgresql.py')
-rw-r--r--tests/dbshell/test_postgresql.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/dbshell/test_postgresql.py b/tests/dbshell/test_postgresql.py
index ccf49d7e50..e9eb131db7 100644
--- a/tests/dbshell/test_postgresql.py
+++ b/tests/dbshell/test_postgresql.py
@@ -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({