test: add offline fixture coverage for Kattis and USACO #342
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/cp.nvim!342
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "test/offline-coverage"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Kattis and USACO had zero offline test coverage — no fixtures, no conftest
routers, and no entries in the test matrix. The
precisionfield and errorpaths were also unverified across all platforms.
Solution
Add HTML fixtures for both platforms and wire up
httpx.AsyncClient.getrouters in
conftest.pyfollowing the existing CSES/CodeChef pattern.Extend the test matrix from 12 to 23 parametrized cases. Add a dedicated
test for the Kattis contest-vs-slug fallback path (verifying
contest_urland
standings_url), three parametrized metadata error cases, and atargeted assertion that
extract_precisionreturns a non-Nonefloat forproblems with floating-point tolerance hints.
Closes #281.