JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.
Python
# Copyright (c) Huawei Technologies Co., Ltd. 2026. All rights reserved.
from pathlib import Path
import pytest
from jiuwenswarm.agents.harness.common import memory_rpc
@pytest.mark.asyncio
async def test_coding_memory_dir_is_project_scoped_under_workspace(tmp_path):
workspace = tmp_path / "agent_workspace"
project_dir = tmp_path / "project"
coding_memory_dir = workspace / "coding_memory" / "project"
coding_memory_dir.mkdir(parents=True)
result = await memory_rpc.handle_memory_open(
str(workspace),
{"project_dir": str(project_dir)},
)
assert Path(result["coding_memory_dir"]) == coding_memory_dir