tests: fully type the test suite (#2794)

* tests: fully type the test suite

* chore: require more typing

Signed-off-by: Henry Schreiner <henryfs@princeton.edu>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Signed-off-by: Henry Schreiner <henryfs@princeton.edu>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Henry Schreiner
2026-04-01 15:23:02 +01:00
committed by GitHub
co-authored by pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
parent 643b30c796
commit 097806b6b1
58 changed files with 627 additions and 339 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ OPTIONS_DEFAULTS = Options("linux", CommandLineArguments.defaults(), {}, default
FILE = Path(__file__)
def test_printout_wheels(capsys):
def test_printout_wheels(capsys: pytest.CaptureFixture[str]) -> None:
log = Logger()
log.fold_mode = "disabled"
log.colors_enabled = False
@@ -32,7 +32,7 @@ def test_printout_wheels(capsys):
assert "SHA256=" in captured.out
def test_no_printout_on_error(capsys):
def test_no_printout_on_error(capsys: pytest.CaptureFixture[str]) -> None:
log = Logger()
with pytest.raises(RuntimeError), log.print_summary(options=OPTIONS_DEFAULTS):
raise RuntimeError()