MCPcopy Create free account
hub / github.com/acgurl/mori / test_basic_error

Method test_basic_error

tests/test_exceptions.py:33–38  ·  view source on GitHub ↗

测试基本错误消息

(self)

Source from the content-addressed store, hash-verified

31 """测试基础异常类"""
32
33 def test_basic_error(self):
34 """测试基本错误消息"""
35 error = MoriError("测试错误")
36 assert str(error) == "测试错误"
37 assert error.message == "测试错误"
38 assert error.details is None
39
40 def test_error_with_details(self):
41 """测试带详情的错误"""

Callers

nothing calls this directly

Calls 1

MoriErrorClass · 0.90

Tested by

no test coverage detected