mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Return plugins and hooks in predictable order
This commit is contained in:
parent
43c30ce023
commit
e1770766ce
3 changed files with 23 additions and 24 deletions
|
|
@ -106,9 +106,7 @@ def test_spatialite_error_if_cannot_find_load_extension_spatialite():
|
|||
def test_plugins_cli(app_client):
|
||||
runner = CliRunner()
|
||||
result1 = runner.invoke(cli, ["plugins"])
|
||||
assert sorted(EXPECTED_PLUGINS, key=lambda p: p["name"]) == sorted(
|
||||
json.loads(result1.output), key=lambda p: p["name"]
|
||||
)
|
||||
assert json.loads(result1.output) == EXPECTED_PLUGINS
|
||||
# Try with --all
|
||||
result2 = runner.invoke(cli, ["plugins", "--all"])
|
||||
names = [p["name"] for p in json.loads(result2.output)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue