mirror of
https://github.com/simonw/datasette.git
synced 2026-09-27 12:24:07 +02:00
Mention that filters_from_request can return an async function
This commit is contained in:
parent
e889403d3b
commit
e82bf89fa5
2 changed files with 9 additions and 0 deletions
|
|
@ -59,6 +59,13 @@ def test_plugin_hooks_are_documented(plugin_hooks_content, subtests):
|
|||
), f"Missing from plugin hook documentation: {expected}"
|
||||
|
||||
|
||||
def test_filters_from_request_async_function_documented(plugin_hooks_content):
|
||||
section = plugin_hooks_content.split(".. _plugin_hook_filters_from_request:")[
|
||||
-1
|
||||
].split(".. _plugin_hook_")[0]
|
||||
assert "async def" in section
|
||||
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
def documented_views():
|
||||
view_labels = set()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue