Skip to content

Conversation

@amilcarlucas
Copy link
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings January 8, 2026 23:40
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes test failures on developer machines by properly mocking ProgramSettings methods that read from and write to the user's configuration file. Without these mocks, tests would load actual connection history and write test data to the developer's real settings file, causing non-deterministic test behavior.

Key Changes

  • Added patch for ProgramSettings.get_connection_history() in test setup to prevent loading actual user settings during widget initialization
  • Added patches for ProgramSettings.store_connection() in all test methods that trigger connection addition to prevent writing test data to the user's settings file
  • Enhanced mock reset logic and improved comments for clarity

@github-actions
Copy link
Contributor

github-actions bot commented Jan 8, 2026

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
10796 9961 92% 89% 🟢

New Files

No new covered files...

Modified Files

No covered modified files...

updated for commit: a290d4f by action🐍

@github-actions
Copy link
Contributor

github-actions bot commented Jan 8, 2026

Test Results

    3 files  ±0      3 suites  ±0   32m 7s ⏱️ -1s
2 863 tests ±0  2 856 ✅ ±0   7 💤 ±0  0 ❌ ±0 
8 589 runs  ±0  8 568 ✅ ±0  21 💤 ±0  0 ❌ ±0 

Results for commit a290d4f. ± Comparison against base commit 57684c1.

@amilcarlucas amilcarlucas merged commit 19c7516 into master Jan 9, 2026
37 checks passed
@amilcarlucas amilcarlucas deleted the conn_sel branch January 9, 2026 09:13
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