test(diff): lock in env-driven DB defaults for diff_holdings#739
Merged
test(diff): lock in env-driven DB defaults for diff_holdings#739
Conversation
Contributor
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a regression test to ensure diff_holdings() uses connect_db() defaults (i.e., calls connect_db() with no explicit path) when no connection is provided, preventing reintroduction of hardcoded DB-path behavior.
Changes:
- Import the
diff_holdingsmodule object for targeted monkeypatching ofconnect_db. - Add a focused test that verifies
diff_holdings()callsconnect_db()with nodb_pathargument and closes the owned connection.
Contributor
🤖 Keepalive Loop StatusPR #739 | Agent: Codex | Iteration 0/5 Current State
🔍 Failure Classification| Error type | infrastructure | |
Contributor
Keepalive Work Log (click to expand)
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
diff_holdings()callsconnect_db()with default configuration when no connection is passedTesting
pytest -q tests/test_diff_holdings.pyruff check tests/test_diff_holdings.py