fix(ai): creation dossier+fichier en mode agent (BUG-050)
This commit is contained in:
@@ -143,6 +143,13 @@ class TestCreate:
|
||||
assert result.ok
|
||||
assert (_vault_path() / "A" / "B").is_dir()
|
||||
|
||||
def test_create_directory_idempotent(self, client):
|
||||
"""BUG-050: re-creating an existing folder is a success for the AI layer."""
|
||||
call_tool("create_directory", _ctx(), {"vault": "TestVault", "path": "Idem/Dir"}, confirm=True)
|
||||
second = call_tool("create_directory", _ctx(), {"vault": "TestVault", "path": "Idem/Dir"}, confirm=True)
|
||||
assert second.ok
|
||||
assert second.data.get("existed") is True
|
||||
|
||||
|
||||
# ═══════════════════════════════════════════════════════════════════
|
||||
# D2. Edit / append / rename / move
|
||||
|
||||
Reference in New Issue
Block a user