MCPcopy Create free account
hub / github.com/MemTensor/MemOS / test_create_cube

Method test_create_cube

tests/mem_user/test_mem_user.py:264–280  ·  view source on GitHub ↗

Test cube creation.

(self, user_manager)

Source from the content-addressed store, hash-verified

262 manager.close()
263
264 def test_create_cube(self, user_manager):
265 """Test cube creation."""
266 # Create owner user
267 owner_id = user_manager.create_user("cube_owner", UserRole.USER)
268
269 # Create cube
270 cube_id = user_manager.create_cube("test_cube", owner_id)
271
272 assert cube_id is not None
273 assert isinstance(cube_id, str)
274
275 # Verify cube exists
276 cube = user_manager.get_cube(cube_id)
277 assert cube is not None
278 assert cube.cube_name == "test_cube"
279 assert cube.owner_id == owner_id
280 assert cube.is_active is True
281
282 def test_create_cube_with_path_and_custom_id(self, user_manager):
283 """Test cube creation with path and custom ID."""

Callers

nothing calls this directly

Calls 3

create_userMethod · 0.45
create_cubeMethod · 0.45
get_cubeMethod · 0.45

Tested by

no test coverage detected