Begun implementing OneLibrary editing

This commit is contained in:
patben8 committed 2026-10-01 15:07:43 +02:00
1 parent 2784879872
commit 775e94168c
28 files changed
+1392 -152

No files matched your search

+3 -1
View File
@@ -228,7 +228,9 @@ with TestClient(main.app, raise_server_exceptions=False) as c:
rb.close()
print("== a library that cannot take tracks refuses the route ==")
fixture = Path(__file__).resolve().parent / "fixtures" / "onelibrary"
# A COPY: opened as THE library, a OneLibrary drive is editable.
fixture = Path(tempfile.mkdtemp()) / "onelibrary"
shutil.copytree(Path(__file__).resolve().parent / "fixtures" / "onelibrary", fixture)
r = c.post("/api/library/open", json={"path": str(fixture)})
if r.status_code == 200:
check("the add preview is refused (422)",