MCPcopy Index your code
hub / github.com/apache/dubbo-python2 / setUp

Method setUp

tests/dubbo_test.py:20–25  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

18
19class TestDubbo(unittest.TestCase):
20 def setUp(self):
21 init_log() # 初始化日志配置,调用端需要自己配置日志属性
22
23 zk = ZkRegister('127.0.0.1:2181')
24 self.dubbo = DubboClient('me.hourui.echo.provider.Echo', zk_register=zk)
25 # self.dubbo = DubboClient('me.hourui.echo.provider.Echo', host='127.0.0.1:20880')
26
27 def tearDown(self):
28 # Do something to clear the test environment here.

Callers

nothing calls this directly

Calls 3

init_logFunction · 0.90
ZkRegisterClass · 0.90
DubboClientClass · 0.90

Tested by

no test coverage detected