gith
Simon Willison 2020-08-16 10:35:14 -07:00
rodzic ac69d151c3
commit 2da4144c57
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -68,7 +68,9 @@ def test_plugin_hooks_are_documented(plugin, plugin_hooks_content):
arg_names = [a for a in hook_caller.spec.argnames if a != "__multicall__"]
# Check for plugin_name(arg1, arg2, arg3)
expected = "{}({})".format(plugin, ", ".join(arg_names))
assert expected in plugin_hooks_content, "Missing from plugin hook documentation: {}".format(expected)
assert (
expected in plugin_hooks_content
), "Missing from plugin hook documentation: {}".format(expected)
@pytest.fixture(scope="session")