Skip to content

CHORE: add extra_params connection-string regression tests#545

Draft
bewithgaurav wants to merge 1 commit into
devfrom
bewithgaurav/test-extra-params-427
Draft

CHORE: add extra_params connection-string regression tests#545
bewithgaurav wants to merge 1 commit into
devfrom
bewithgaurav/test-extra-params-427

Conversation

@bewithgaurav

Copy link
Copy Markdown
Collaborator

adds regression tests for the extra_params connection-string handling, covering the scenarios raised in #427:

  • extra_params is appended to the connection string verbatim
  • a keyword containing a space (Connection Timeout=30) survives verbatim
  • an Authentication= mode alongside a spaced keyword does not inject Trusted_Connection (the FA001 case fixed in 1.7.3, FIX: skip Trusted_Connection/SSPI when Authentication= is explicit #533)
  • the tokenizer behind that fix stays correct with a spaced sibling keyword

test-only, no code change. all under testapp/tests/test_base.py (SimpleTestCase, no db).

adds coverage for the extra_params scenarios from #427: verbatim append,
keywords containing spaces (e.g. Connection Timeout), and an
Authentication= mode alongside a spaced keyword not injecting
Trusted_Connection (the FA001 case fixed in 1.7.3, #533).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
extra = "Encrypt=no;TrustServerCertificate=yes"
conn_params = {
"NAME": "testdb",
"HOST": "localhost",
"""
conn_params = {
"NAME": "testdb",
"HOST": "localhost",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants