chore: remove unused imports and normalize import style in test files#5879
Open
jonpspri wants to merge 3 commits into
Open
chore: remove unused imports and normalize import style in test files#5879jonpspri wants to merge 3 commits into
jonpspri wants to merge 3 commits into
Conversation
Ultraworked with Sisyphus Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai> Signed-off-by: Jonathan Springer <jps@s390x.com>
jonpspri
requested review from
Lang-Akshay,
brian-hussey,
crivetimihai,
ja8zyjits and
msureshkumar88
as code owners
July 25, 2026 12:11
The test_main_apis.py test_delete_resource assert 403 == 404 failure is a pre-existing issue in CI (verified on run 30157564766). The PR modifies test logic (URI lookup approach) in addition to the pure-lint import removal (import time). The test fix attempt does not resolve the underlying failure in CI's full-suite context. test_main_apis.py is out of scope for a pure-lint PR — pre-existing e2e failures are tracked separately. This leaves 8 verified-pure-lint files in the PR (locustfile, test_auth_middleware, test_db, test_observability, test_translate_helpers, test_check_schema_at_head, test_password_change_enforcement, test_unified_pdp). Signed-off-by: Jonathan Springer <jps@s390x.com>
Signed-off-by: Jonathan Springer <jps@s390x.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
Remove unused imports and normalize import style across test files. These are purely cosmetic changes that improve code quality without affecting behavior.
Changes
HTMLResponse,AsyncMock,JSONResponse,time, etc.)import mcpgateway.db as db→from mcpgateway import db)Files Changed (9 files)
Verification
Closes #5878