from pathlib import Path from pearlygates.log_parser import parse_all_benchmark_tables, split_modes def test_parse_uploaded_code_txt_has_expected_modes_and_rows(): text = Path('/mnt/data/code.txt').read_text(encoding='utf-8') modes = split_modes(text) assert {'baseline', 'frontier', 'milestone_all'} <= set(modes) rows = parse_all_benchmark_tables(text) assert len(rows) == 63 first = rows[0] assert first.mode == 'baseline' assert first.benchmark_id == 'geo_france_canonical' assert first.denoise_layer == 12 assert first.noise_layer == 14