12345678910111213141516171819202122232425262728293031 |
- import synapse.app.homeserver
- from synapse.config._base import ConfigError
- from tests.config.utils import ConfigFileTestCase
- class HomeserverAppStartTestCase(ConfigFileTestCase):
- def test_wrong_start_caught(self):
-
- self.generate_config()
-
- self.add_lines_to_config([" "])
- self.add_lines_to_config(["worker_app: test_worker_app"])
-
- with self.assertRaises(ConfigError):
- synapse.app.homeserver.setup(["-c", self.config_file])
|