This commit is contained in:
Sebastian Cao 2026-10-13 01:39:48 +08:00 • committed by GitHub
commit 9c0acb8390
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 0 deletions

View file

@ -65,6 +65,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()