Browse Source

Fix sslmode example value

Correct values can be found here:
https://www.postgresql.org/docs/9.1/libpq-ssl.html
pull/189/head
Clemens Wolff 5 years ago
parent
commit
477f8c3724
1 changed files with 2 additions and 2 deletions
  1. 4
      app/server/tests/test_config.py

4
app/server/tests/test_config.py

@ -17,8 +17,8 @@ class TestDatabaseUrl(TestCase):
self._assert_sslmode_is(None)
def test_sslmode_can_be_disabled_via_database_url(self):
with setenv('DATABASE_URL', 'pgsql://u:p@h/d?sslmode=disabled'):
self._assert_sslmode_is('disabled')
with setenv('DATABASE_URL', 'pgsql://u:p@h/d?sslmode=disable'):
self._assert_sslmode_is('disable')
def test_sslmode_can_be_required_via_database_url(self):
with setenv('DATABASE_URL', 'pgsql://u:p@h/d?sslmode=require'):

Loading…
Cancel
Save