"""AZ-839 AC-9 — integration test: fixture produces a real :class:`PopulatedC6Cache`. Gated by ``RUN_REPLAY_E2E=1`` AND ``@pytest.mark.tier2`` per the AZ-839 task spec. The work the test asserts is the fixture's contract; the fixture wiring itself lives in ``tests/e2e/replay/conftest.py::operator_pre_flight_setup`` and the algorithmic correctness is covered by ``test_operator_pre_flight_driver.py`` against stubs (AC-8). This test exists so AC-9 has a concrete pytest entry point. Other end-to-end consumers (AZ-840 e2e orchestrator test; AZ-841 un-xfail of the AZ-777 Tier-2 tests) chain off the same fixture. """ from __future__ import annotations import pytest from tests.e2e.replay._operator_pre_flight import PopulatedC6Cache @pytest.mark.tier2 def test_operator_pre_flight_setup_produces_populated_cache( operator_pre_flight_setup: PopulatedC6Cache, ) -> None: # Arrange populated = operator_pre_flight_setup # Assert assert isinstance(populated, PopulatedC6Cache) assert populated.cache_root.is_dir() assert populated.tile_store_path.is_dir() assert populated.faiss_index_path.is_file() assert populated.faiss_sidecar_sha256_path.is_file() assert populated.faiss_sidecar_meta_path.is_file() assert populated.tile_count > 0 assert populated.elapsed_seconds >= 0.0 assert populated.route_spec.waypoints, ( "RouteSpec must carry at least one waypoint extracted from the tlog" )