fix(ai): creation dossier+fichier en mode agent (BUG-050)
This commit is contained in:
@@ -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"})
|
||||
|
||||
Reference in New Issue
Block a user