app
AI Flow
Public Made by Adomby adom
Adom's AI Flow: a tool to help the AI follow all of the steps it takes to build a board.
← Commit history
tests: the fake adom-wiki answers library show/remove, which project-page has called since 0.2.41 (#125); the suite was failing 13 checks on a test stand-in, not on the tool
1 file changed
+10
tests/project-page-library.py+10@@ -42,6 +42,16 @@ if a[:2] == ["library", "add"]: if p not in l["items"]: l["items"].append(p) l["item_count"] = len(l["items"]) out({"status": "ok", "data": {"added": a[3:]}})+# issue #125 (0.2.41): a reused library is compared with the BOM, stale items removed by id+if a[:2] == ["library", "show"]:+ l = lib(a[2])+ items = [{"id": i, "owner": p.split("/")[0], "slug": p.split("/")[1], "mpn": st["pages"].get(p)} for i, p in enumerate(l["items"])]+ out({"status": "ok", "data": {"ref": l["ref"], "name": l["name"], "items": items}})+if a[:2] == ["library", "remove"]:+ l = lib(a[2]); i = int(a[3])+ if 0 <= i < len(l["items"]): l["items"].pop(i)+ l["item_count"] = len(l["items"])+ out({"status": "ok"}) if a[:2] == ["library", "export"]: l = lib(a[2]); dest = a[a.index("-o") + 1] name = l["name"].replace("/", "_")