test: verify precision extraction produces non-None result

This commit is contained in:
Barrett Ruth 2026-03-06 16:47:20 -05:00
parent 37ad92432e
commit 9027a54b8f
Signed by: barrett
GPG key ID: A6C96C9349D2FC81

View file

@ -114,6 +114,13 @@ def test_kattis_contest_metadata(run_scraper_offline):
assert model.standings_url != ""
def test_usaco_precision_extracted(run_scraper_offline):
rc, objs = run_scraper_offline("usaco", "tests", "dec24_gold")
assert rc == 0
precisions = [obj["precision"] for obj in objs if "problem_id" in obj]
assert any(p is not None for p in precisions), "Expected at least one problem with precision"
@pytest.mark.parametrize(
"scraper,contest_id",
[