Skip to content

test(python): rewrite box management tests to cover actual API#300

Merged
DorianZheng merged 2 commits intomainfrom
fix/rewrite-box-management-tests
Feb 25, 2026
Merged

test(python): rewrite box management tests to cover actual API#300
DorianZheng merged 2 commits intomainfrom
fix/rewrite-box-management-tests

Conversation

@DorianZheng
Copy link
Copy Markdown
Member

Summary

  • Replace 12 skipped tests targeting a never-implemented module-level API (boxlite.list_boxes, etc.) with 28 unskipped tests verifying the real API surface
  • Tests cover: exports (BoxInfo, BoxStateInfo, Boxlite), type structure (attributes, __repr__), management methods on both Boxlite and SyncBoxlite, and __all__ exports
  • No VM required — uses only hasattr/dir/import checks

Test plan

  • make test:unit:python passes — 88 passed, 0 skipped from this file

Replace 12 skipped tests targeting a never-implemented module-level API
(boxlite.list_boxes, etc.) with 28 unskipped tests verifying the real
API surface: Boxlite/SyncBoxlite instance methods, BoxInfo/BoxStateInfo
type structure, and module exports. No VM required.
@DorianZheng DorianZheng force-pushed the fix/rewrite-box-management-tests branch from 6f423c7 to e00cb29 Compare February 25, 2026 13:12
Extract venv creation and dev dependency installation into a dedicated
`venv:python` target. `test:unit:python` now runs inside the venv
without requiring maturin/runtime build. Remove global pip installs
from setup scripts — deps are managed per-venv instead.
@DorianZheng DorianZheng merged commit cca4c9e into main Feb 25, 2026
20 checks passed
@DorianZheng DorianZheng deleted the fix/rewrite-box-management-tests branch February 25, 2026 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant