github okken/pytest-check 2.7.2

2 hours ago

Fixed

  • #184: Fix issues with mypy. The example in this issue now passes mypy. Also mypy is now being tested as part of tox.
  • (typing) Allow dynamic helper access on CheckContextManager for static analysis, so patterns like check.equal(...) type-check in fixture-annotated tests.

Changed

  • (typing) Update internal _Comparable* protocol comparison signatures to satisfy strict mypy checks.
  • (tox) Enable and expand mypy env checks to include examples/.
  • (tox) Install httpx in the mypy env so example type checking works without import ignores.
  • (examples) Switch decorator usage in test_example_check_func_decorator.py to import check_func directly for static type checking.
  • (examples) Add test_example_context_manager_type.py to document and validate context-manager fixture typing behavior.
  • (ci) Add a GitHub Actions quality job to run tox -e lint,mypy,pytest_earliest,coverage.

Don't miss a new pytest-check release

NewReleases is sending notifications on new releases.