fix(ai): creation dossier+fichier en mode agent (BUG-050)
CI / lint (push) Successful in 1m32s
CI / security (push) Successful in 1m7s
CI / test (push) Successful in 3m6s
CI / build (push) Successful in 55s
CI / e2e (push) Successful in 10m48s

This commit is contained in:
2026-09-16 21:10:38 -04:00
parent 0d4f43a8bf
commit 634d10cdd4
18 changed files with 168 additions and 22 deletions
+6
View File
@@ -271,6 +271,12 @@ class TestDirectoryCRUD:
data = resp.json()
assert data["success"] is True
def test_create_directory_existing_conflicts(self, client):
"""The REST endpoint stays strict: an existing folder is a 409."""
client.post("/api/directory/TestVault", json={"path": "Dup"})
resp = client.post("/api/directory/TestVault", json={"path": "Dup"})
assert resp.status_code == 409
def test_rename_directory(self, client):
# Create first
client.post("/api/directory/TestVault", json={"path": "OldName"})