Skip to content

refactor: Add and inherit from test_utils.py abstract spec; add contract and protocol tests#11

Open
JulianSlzr wants to merge 5 commits intomlx-steppable-typingfrom
mlx-abstract-test_utils
Open

refactor: Add and inherit from test_utils.py abstract spec; add contract and protocol tests#11
JulianSlzr wants to merge 5 commits intomlx-steppable-typingfrom
mlx-abstract-test_utils

Conversation

@JulianSlzr
Copy link
Copy Markdown
Collaborator

@JulianSlzr JulianSlzr commented Apr 10, 2026

  • Add MLX test_utils.py from DBraun's branch
  • Abstract test_utils (e.g., SequenceLayerTest, verify_contract) into specs and backend-specific implementations
  • Add ModuleSpecTest to enforce backend modules implementing module protocol specs
  • Add / port test utility tests (e.g. verify_contract correctly catches mismatches)
  • Resolve linting errors and enforce missing @override annotations across backends

@JulianSlzr JulianSlzr requested a review from rryan April 10, 2026 17:16
@JulianSlzr JulianSlzr force-pushed the mlx-abstract-test_utils branch from 7514af9 to 185a7e5 Compare April 10, 2026 17:34
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