Skip to content

DazzleTreeLib needs introspection methods for adapter capabilities #2

@djdarcy

Description

@djdarcy

Problem

When DazzleTreeLib adapters are wrapped in ErrorHandlingAdapter, there's no way to introspect what capabilities the underlying adapter stack provides. This causes test failures when code tries to check for features like cache tracking.

Current Workaround

Tests are currently skipped with:

@pytest.mark.skip(reason="Waiting for DazzleTreeLib introspection support")

Proposed Solution

DazzleTreeLib needs to add introspection methods to adapters:

  • has_capability(capability_name) - Check if adapter stack supports a feature
  • get_adapter_by_type(adapter_class) - Retrieve specific adapter from stack
  • list_capabilities() - List all available capabilities

Affected Tests

  • tests/test_permission_error_handling.py::test_cache_tracking_with_errors
  • tests/test_permission_error_handling.py::test_visited_tracking_with_permission_errors

Dependencies

  • Requires changes in DazzleTreeLib repository
  • Will need to update modified_datetime_fix once DazzleTreeLib is updated

Related to DazzleTreeLib v0.9.2 error handling improvements.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions