Skip to content

test: unit tests for backend pure logic (cache, adapters/catalog, bedrock) #816

Closed

Description

@planetf1

Add unit tests for backend modules that contain pure logic testable without any model or credentials.

Scope

File Stmts What's missing Est. tests
`cache.py` 28 LRU eviction, `on_evict` callback, capacity edge cases — zero dedicated tests despite being used by HF backend ~8
`adapters/catalog.py` 28 Metadata lookup, `ValueError` on unknown name, `known_intrinsic_names()` — pure dict/Pydantic logic ~5
`bedrock.py` 42 URI construction, `ModelIdentifier` matching, env var validation — testable without AWS credentials ~5

Notes

~18 tests, quick to write and review.

Activity

  1. self-assigned this
    on Apr 10, 2026
  2. added a commit that references this issue on Apr 13, 2026
    ccb23f0
  3. added a commit that references this issue on Apr 14, 2026
    fdcb7e3
  4. added a commit that references this issue on May 27, 2026
    6ce8587
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions