mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Modernize code to Python 3.6+ (#1158)
* Compact dict and set building * Remove redundant parentheses * Simplify chained conditions * Change method name to lowercase * Use triple double quotes for docstrings Thanks, @eumiro!
This commit is contained in:
parent
90eba4c3ca
commit
a882d67962
19 changed files with 76 additions and 82 deletions
|
|
@ -28,7 +28,7 @@ at_memory_re = re.compile(r" at 0x\w+")
|
|||
"plugin_hook", [name for name in dir(pm.hook) if not name.startswith("_")]
|
||||
)
|
||||
def test_plugin_hooks_have_tests(plugin_hook):
|
||||
"Every plugin hook should be referenced in this test module"
|
||||
"""Every plugin hook should be referenced in this test module"""
|
||||
tests_in_this_module = [t for t in globals().keys() if t.startswith("test_hook_")]
|
||||
ok = False
|
||||
for test in tests_in_this_module:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue