Skip to content

[CHORE][TESTS]: Remove unused PromptNotFoundError import #2382

@crivetimihai

Description

@crivetimihai

Description

The file tests/unit/mcpgateway/services/test_authorization_access.py imports PromptNotFoundError but never uses it.

File: tests/unit/mcpgateway/services/test_authorization_access.py
Line 26:

from mcpgateway.services.prompt_service import PromptNotFoundError, PromptService

Suggested Fix

Remove the unused import:

from mcpgateway.services.prompt_service import PromptService

Detection

Found by ruff linter (F401):

F401 [*] `mcpgateway.services.prompt_service.PromptNotFoundError` imported but unused

Notes

This is a minor cleanup task with no functional impact.

Metadata

Metadata

Assignees

Labels

COULDP3: Nice-to-have features with minimal impact if left out; included if time permitschoreLinting, formatting, dependency hygiene, or project maintenance choresgood first issueGood for newcomerspythonPython / backend development (FastAPI)

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions