mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Applied Black
This commit is contained in:
parent
ac69d151c3
commit
2da4144c57
1 changed files with 3 additions and 1 deletions
|
|
@ -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__"]
|
arg_names = [a for a in hook_caller.spec.argnames if a != "__multicall__"]
|
||||||
# Check for plugin_name(arg1, arg2, arg3)
|
# Check for plugin_name(arg1, arg2, arg3)
|
||||||
expected = "{}({})".format(plugin, ", ".join(arg_names))
|
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")
|
@pytest.fixture(scope="session")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue