test: verify precision extraction produces non-None result
This commit is contained in:
parent
37ad92432e
commit
9027a54b8f
1 changed files with 7 additions and 0 deletions
|
|
@ -114,6 +114,13 @@ def test_kattis_contest_metadata(run_scraper_offline):
|
||||||
assert model.standings_url != ""
|
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(
|
@pytest.mark.parametrize(
|
||||||
"scraper,contest_id",
|
"scraper,contest_id",
|
||||||
[
|
[
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue