Skip to content

Mypy coverage of our tests - #489

Merged
gkreitz merged 6 commits into
Kattis:masterfrom
gkreitz:mypy_on_tests
Sep 4, 2026
Merged

Mypy coverage of our tests#489
gkreitz merged 6 commits into
Kattis:masterfrom
gkreitz:mypy_on_tests

Conversation

@gkreitz

@gkreitz gkreitz commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

This PR adds mypy coverage of our tests. It's mostly extremely mechanical boilerplate (like adding -> None to a ton of functions).

Changes:

  • Move test data needed by tests into tests/data instead of cluttering the directory with various fixtures
  • Add helper methods datadir (pointing to tests/data) and example_directory(problem_name: str) pointing to our /examples directory for a proble
  • Removed the copy of hello we had in tests, I think it's just as well those tests read from /examples (like several other tests already did)
  • Added a few tiny asserts to test_verify_hello to do some additional sanity-checking of problem loading

@gkreitz
gkreitz merged commit b7de871 into Kattis:master Sep 4, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant