pearlygates / production /tests /test_log_parser.py
theapemachine's picture
Add initial project structure with core files and configurations
5d6894b
Raw
History Blame Contribute Delete
585 Bytes
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