File tree Expand file tree Collapse file tree 2 files changed +0
-25
lines changed
Expand file tree Collapse file tree 2 files changed +0
-25
lines changed Original file line number Diff line number Diff line change 421421 default = 0 ,
422422 description = "Maximum age of connection to Postgres in seconds" ,
423423)
424- # If True, disables server-side database cursors to prevent invalid cursor errors when using pgbouncer
425- DEFAULT_DATABASE_CONFIG ["DISABLE_SERVER_SIDE_CURSORS" ] = get_bool (
426- name = "MITX_ONLINE_DB_DISABLE_SS_CURSORS" ,
427- default = True ,
428- description = "Disables Postgres server side cursors" ,
429- )
430-
431424
432425if get_bool (
433426 name = "MITX_ONLINE_DB_DISABLE_SSL" ,
Original file line number Diff line number Diff line change @@ -166,21 +166,3 @@ def test_semantic_version(settings):
166166 Verify that we have a semantic compatible version.
167167 """
168168 semantic_version .Version (settings .VERSION )
169-
170-
171- def test_server_side_cursors_disabled (settings_sandbox ):
172- """DISABLE_SERVER_SIDE_CURSORS should be true by default"""
173- settings_vars = settings_sandbox .get ()
174- assert (
175- settings_vars ["DEFAULT_DATABASE_CONFIG" ]["DISABLE_SERVER_SIDE_CURSORS" ] is True
176- )
177-
178-
179- def test_server_side_cursors_enabled (settings_sandbox ):
180- """DISABLE_SERVER_SIDE_CURSORS should be false if MITX_ONLINE_DB_DISABLE_SS_CURSORS is false"""
181- settings_vars = settings_sandbox .patch (
182- {"MITX_ONLINE_DB_DISABLE_SS_CURSORS" : "False" }
183- )
184- assert (
185- settings_vars ["DEFAULT_DATABASE_CONFIG" ]["DISABLE_SERVER_SIDE_CURSORS" ] is False
186- )
You can’t perform that action at this time.
0 commit comments