mirror of
https://github.com/MrPatben8/konduktor.git
synced 2026-11-27 10:22:51 +01:00
Begun implementing OneLibrary editing
This commit is contained in:
1 parent
2784879872
commit
775e94168c
28 files changed
+1392
-152
No files matched your search
@@ -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)",
|
||||
|
||||
Reference in new issue
Block a user