MCPcopy Create free account
hub / github.com/ehForwarderBot/ehForwarderBot / test_load_config

Function test_load_config

tests/test_channel_loading.py:52–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50
51
52def test_load_config():
53 data = {
54 "master_channel": "tests.mocks.master.MockMasterChannel",
55 "slave_channels": ["tests.mocks.slave.MockSlaveChannel"],
56 "middlewares": ["tests.mocks.middleware.MockMiddleware"]
57 }
58 config_path = ehforwarderbot.utils.get_config_path()
59 with config_path.open('w') as f:
60 yaml.dump(data, f)
61 result = ehforwarderbot.config.load_config()
62 for k, v in data.items():
63 assert result[k] == v
64
65
66def test_custom_path_module_loading():

Callers

nothing calls this directly

Calls 1

load_configMethod · 0.80

Tested by

no test coverage detected