MCPcopy
hub / github.com/pallets-eco/flask-sqlalchemy / test_error_out

Function test_error_out

tests/test_pagination.py:194–196  ·  view source on GitHub ↗
(paginate: _PaginateCallable, page: t.Any, per_page: t.Any)

Source from the content-addressed store, hash-verified

192 ("page", "per_page"), [("abc", None), (None, "abc"), (0, None), (None, -1)]
193)
194def test_error_out(paginate: _PaginateCallable, page: t.Any, per_page: t.Any) -> None:
195 with pytest.raises(NotFound):
196 paginate(page=page, per_page=per_page)
197
198
199@pytest.mark.usefixtures("app_ctx")

Callers

nothing calls this directly

Calls 1

paginateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…