test: add missing test coverage for PRs #325, #347, #357, #467#498
Merged
test: add missing test coverage for PRs #325, #347, #357, #467#498
Conversation
rchiodo
reviewed
Apr 1, 2026
rchiodo
reviewed
Apr 1, 2026
rchiodo
reviewed
Apr 1, 2026
…eanup - Add normalize_path to mock_lsp_utils in test_global_defaults.py - Add fallback guard ensuring normalize_path is set even if lsp_utils was mocked by another test file first - Wrap dmypy status file test bodies in try/finally so _clear_dmypy_cache() runs even when assertions fail Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
rchiodo
reviewed
Apr 7, 2026
rchiodo
reviewed
Apr 7, 2026
rchiodo
reviewed
Apr 7, 2026
- Remove unused imports (PythonEnvironmentApi, commands, Disposable, Event) - Add explicit envsApiStub.calledOnce assertion in fallback test - Change let workspace1 to const (2 occurrences) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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
Adds missing test coverage for merged PRs, as tracked by #496.
Part of the cross-repo test coverage initiative: microsoft/vscode-python-tools-extension-template#290
Tests added
PR #357 — nearestConfig searches more config files
test_get_cwd.py: Finds.mypy.ini,pyproject.toml, andsetup.cfg(not justmypy.ini); prefers closest config filePR #325 — ignorePatterns from global settings
test_global_defaults.py: Verifies_get_global_defaults()readsignorePatternsfromGLOBAL_SETTINGSPR #347 — daemonStatusFile setting
test_dmypy_status_file.py:_get_dmypy_args()uses customdaemonStatusFilewhen set, auto-generates when empty, caches per workspacesettings.unit.test.ts:checkIfConfigurationChangeddetectsdaemonStatusFilechanges;getWorkspaceSettingsreturns propertyPR #467 — PythonEnvironments.api() migration
python.unit.test.ts: Resolves interpreter viaPythonEnvironments.api(); falls back to legacy API when unavailableSkipped PRs
Refs #496