Skip to content

Test quality: 6 tests with no useful assertions, 1 dead test file #3853

@strawgate

Description

@strawgate

Description

A test suite audit identified several tests that always pass regardless of behavior, plus a dead test file:

  1. test_error_handling_middleware_transform_errors — asserts only exc_info.value is not None (always true after pytest.raises)
  2. test_retry_middleware_with_transient_failures — zero assertions, try/except swallows all errors
  3. test_error_handling_middleware_tracks_error_statistics — calls tools on a disconnected client (outside async with), all calls silently fail
  4. test_pydantic_model_with_stringified_json_no_strict — try/except succeeds on both branches, test can never fail
  5. test_path_traversal_blocked — assertions after pytest.raises are dead code (lines after the raising call never execute)
  6. test_run_server.py — entire file (99 lines) is commented out, provides zero coverage

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working. Reports of errors, unexpected behavior, or broken functionality.tests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions