datasette plugins --requirements, closes #2133

This commit is contained in:
Simon Willison 2023-08-09 15:04:16 -07:00
commit 4a42476bb7
4 changed files with 42 additions and 6 deletions

View file

@ -108,6 +108,9 @@ def test_plugins_cli(app_client):
assert set(names).issuperset({p["name"] for p in EXPECTED_PLUGINS})
# And the following too:
assert set(names).issuperset(DEFAULT_PLUGINS)
# --requirements should be empty because there are no installed non-plugins-dir plugins
result3 = runner.invoke(cli, ["plugins", "--requirements"])
assert result3.output == ""
def test_metadata_yaml():