Update tests for new plugin_hooks.rst, refs #687

This commit is contained in:
Simon Willison 2020-06-21 19:41:07 -07:00
commit 751e7b4af7

View file

@ -53,7 +53,7 @@ def test_help_includes(name, filename):
"plugin", [name for name in dir(app.pm.hook) if not name.startswith("_")] "plugin", [name for name in dir(app.pm.hook) if not name.startswith("_")]
) )
def test_plugin_hooks_are_documented(plugin): def test_plugin_hooks_are_documented(plugin):
headings = [s.split("(")[0] for s in get_headings("plugins.rst", "~")] headings = [s.split("(")[0] for s in get_headings("plugin_hooks.rst", "-")]
assert plugin in headings assert plugin in headings