Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions main/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,10 +252,6 @@
"sqlite:///{}".format(os.path.join(BASE_DIR, "db.sqlite3")), # noqa: PTH118
)
)
DEFAULT_DATABASE_CONFIG["DISABLE_SERVER_SIDE_CURSORS"] = get_bool(
"MITOL_DB_DISABLE_SS_CURSORS",
True, # noqa: FBT003
)
DEFAULT_DATABASE_CONFIG["CONN_MAX_AGE"] = get_int("MITOL_DB_CONN_MAX_AGE", 0)

if get_bool("MITOL_DB_DISABLE_SSL", False): # noqa: FBT003
Expand Down
8 changes: 0 additions & 8 deletions main/settings_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,6 @@ def test_required_settings(self):
):
self.reload_settings()

def test_server_side_cursors_disabled(self):
"""DISABLE_SERVER_SIDE_CURSORS should be true by default"""
with mock.patch.dict("os.environ", REQUIRED_SETTINGS):
settings_vars = self.reload_settings()
assert (
settings_vars["DEFAULT_DATABASE_CONFIG"]["DISABLE_SERVER_SIDE_CURSORS"]
is True
)

def test_server_side_cursors_enabled(self):
"""DISABLE_SERVER_SIDE_CURSORS should be false if MITOL_DB_DISABLE_SS_CURSORS is false"""
Expand Down
Loading