Install every plugin settings.json enables, and prove the bench's private files stay off the remote
This commit is contained in:
@@ -25,6 +25,10 @@ PRIVATE = [
|
||||
"sessions/a.json",
|
||||
"shell-snapshots/a.sh",
|
||||
"tasks/a/b.json",
|
||||
"workflow-bench/a-1-1.md",
|
||||
"workflow-bench/a-1-1/README.md",
|
||||
"workflow-bench/judge/a/1/fixes.diff",
|
||||
"workflow-bench/logs/a.jsonl",
|
||||
]
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
import json
|
||||
import unittest
|
||||
|
||||
from test_python_floor import ROOT
|
||||
|
||||
|
||||
class Install(unittest.TestCase):
|
||||
def test_the_readme_installs_every_enabled_plugin_from_a_declared_marketplace(self):
|
||||
settings = json.loads((ROOT / "settings.json").read_text(encoding="utf-8"))
|
||||
readme = (ROOT / "README.md").read_text(encoding="utf-8")
|
||||
for plugin, enabled in settings["enabledPlugins"].items():
|
||||
if enabled:
|
||||
self.assertIn(f"claude plugin install {plugin}\n", readme)
|
||||
marketplace = settings["extraKnownMarketplaces"][plugin.split("@")[1]]["source"]["repo"]
|
||||
self.assertIn(f"claude plugin marketplace add {marketplace}\n", readme)
|
||||
Reference in New Issue
Block a user