from agent_evaluation.functions.read_comp_log import read_comp_log import pytest def test_comp_log_stays_unset_until_the_summary_line_is_known() -> None: summary = read_comp_log("Error: something\n1 Error, 2 Warnings\n") assert summary.error_count is None assert summary.warning_count is None def test_comp_log_rejects_non_text() -> None: with pytest.raises(TypeError): read_comp_log(b"log") # type: ignore[arg-type]