test_ohlcv_fixtures¶
Polars-free validation of the OHLCV golden fixtures.
Recomputes bars from the prepared-trades fixture with pure Python and compares
against the exported bars, so hardware-facing tests can rely on these files
without a polars dependency. Fixtures are generated by
python -m dau_polars.ohlcv_fixtures (see dau-docs-private/OHLCV_BARS.md).
Attributes¶
Functions¶
|
|
|
|
|
|
|
|
Module Contents¶
- test_ohlcv_fixtures.FIXTURE_DIR¶
- test_ohlcv_fixtures._read(name: str) list[dict[str, str]]¶
- test_ohlcv_fixtures._compute_bars(prepared: list[dict[str, str]]) dict[tuple[str, int, int], dict[str, int]]¶
- test_ohlcv_fixtures.test_exported_bars_match_pure_python_recomputation(session: str) None¶
- test_ohlcv_fixtures.test_bar_invariants(session: str) None¶
- test_ohlcv_fixtures.test_prepared_fixture_is_sorted_per_host_guarantee() None¶