Download testing/agent_evaluation/tests/functions/test_read_comp_log.py from yuhanqin/ut-evaluation: direct link, hf CLI and curl.
- Browser
- Download file 447 Bytes
-
https://huggingface.co/datasets/yuhanqin/ut-evaluation/resolve/main/testing/agent_evaluation/tests/functions/test_read_comp_log.py
- Command line
-
hf download hf://datasets/yuhanqin/ut-evaluation/testing/agent_evaluation/tests/functions/test_read_comp_log.py
-
curl -L -o test_read_comp_log.py https://huggingface.co/datasets/yuhanqin/ut-evaluation/resolve/main/testing/agent_evaluation/tests/functions/test_read_comp_log.py
447 Bytes
| 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] | |