mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-05 08:07:05 +00:00
1.8 KiB
1.8 KiB
Expected Structure
tests/rust-python-harness/
├── __main__.py
│
├── strategies/
│ ├── e2e_parity/
│ │ ├── runner.py
│ │ ├── sdk/
│ │ │ ├── ocr/
│ │ │ ├── messages/
│ │ │ ├── chat_completions/
│ │ │ └── responses/
│ │ └── gateway/
│ │
│ ├── trace_parity/
│ │ ├── runner.py
│ │ ├── sdk/
│ │ └── gateway/
│ │
│ └── unit_tests/
│ ├── runner.py
│ ├── mapping_validator.py
│ ├── python_runner.py
│ └── rust_runner.py
│
└── shared/
├── parity/
├── tracing/
└── reporting/
- Run locally only; no CI integration
__main__.pyselects strategies and combines their reports; each strategy also runs independentlye2e_parity/compares SDK objects, exceptions, callbacks, and streams, or gateway HTTP responsestrace_parity/compares mapped operations, call counts, and required execution ordering- E2E and trace runners share orchestration across
sdk/andgateway/; surface-specific execution lives in those folders unit_tests/runner.pycombines mapping validation, Python test runs, and native Rust test runsmapping_validator.pymatches Python/Rust tests by agreed names or annotations and reports missing or ambiguous counterpartspython_runner.pyruns existing Python tests with Rust disabled and enabled in separate processes, verifies backend selection, and compares resultsrust_runner.pyruns Cargo tests; native Rust unit tests stay beside their implementationshared/contains reusable parity, tracing, and reporting machinery- Keep fixtures with their owning API and existing Python tests in their current locations