test_ohlcv_fixtures =================== .. py:module:: test_ohlcv_fixtures .. autoapi-nested-parse:: 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 ---------- .. autoapisummary:: test_ohlcv_fixtures.FIXTURE_DIR Functions --------- .. autoapisummary:: test_ohlcv_fixtures._read test_ohlcv_fixtures._compute_bars test_ohlcv_fixtures.test_exported_bars_match_pure_python_recomputation test_ohlcv_fixtures.test_bar_invariants test_ohlcv_fixtures.test_prepared_fixture_is_sorted_per_host_guarantee Module Contents --------------- .. py:data:: FIXTURE_DIR .. py:function:: _read(name: str) -> list[dict[str, str]] .. py:function:: _compute_bars(prepared: list[dict[str, str]]) -> dict[tuple[str, int, int], dict[str, int]] .. py:function:: test_exported_bars_match_pure_python_recomputation(session: str) -> None .. py:function:: test_bar_invariants(session: str) -> None .. py:function:: test_prepared_fixture_is_sorted_per_host_guarantee() -> None