()
| 50 | |
| 51 | |
| 52 | def 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 | |
| 66 | def test_custom_path_module_loading(): |
nothing calls this directly
no test coverage detected