[checkmk-commits] Silence mypy (we have no pytest.pyi). Added forgotten assert and fix test.