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
|
|
@ -110,7 +110,7 @@ def test_plugins_cli(app_client):
|
|||
result2 = runner.invoke(cli, ["plugins", "--all"])
|
||||
names = [p["name"] for p in json.loads(result2.output)]
|
||||
# Should have all the EXPECTED_PLUGINS
|
||||
assert set(names).issuperset(set(p["name"] for p in EXPECTED_PLUGINS))
|
||||
assert set(names).issuperset({p["name"] for p in EXPECTED_PLUGINS})
|
||||
# And the following too:
|
||||
assert set(names).issuperset(DEFAULT_PLUGINS)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue