Request.fake(... url_vars), plus .fake() is now documented

Also made 'from datasette import Request' shortcut work.

Closes #1697
This commit is contained in:
Simon Willison 2022-03-31 19:01:58 -07:00
commit 5c5e9b3657
4 changed files with 38 additions and 2 deletions

View file

@ -1,5 +1,5 @@
from datasette.version import __version_info__, __version__ # noqa
from datasette.utils.asgi import Forbidden, NotFound, Response # noqa
from datasette.utils.asgi import Forbidden, NotFound, Request, Response # noqa
from datasette.utils import actor_matches_allow # noqa
from .hookspecs import hookimpl # noqa
from .hookspecs import hookspec # noqa