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

Method test_delete_root_user

tests/mem_user/test_mem_user.py:230–236  ·  view source on GitHub ↗

Test that root user cannot be deleted.

(self, user_manager)

Source from the content-addressed store, hash-verified

228 assert user.is_active is False
229
230 def test_delete_root_user(self, user_manager):
231 """Test that root user cannot be deleted."""
232 result = user_manager.delete_user("root")
233 assert result is False
234
235 # Root user should still be active
236 assert user_manager.validate_user("root") is True
237
238 def test_delete_nonexistent_user(self, user_manager):
239 """Test deleting non-existent user."""

Callers

nothing calls this directly

Calls 2

delete_userMethod · 0.45
validate_userMethod · 0.45

Tested by

no test coverage detected