mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-08 07:54:55 -04:00
Use a regular HomeServerConfig object for unit tests
Rather than using a Mock for the homeserver config, use a genuine HomeServerConfig object. This makes for a more realistic test, and means that we don't have to keep remembering to add things to the mock config every time we add a new config setting.
This commit is contained in:
parent
053c50bcb3
commit
13bc1e0746
3 changed files with 25 additions and 13 deletions
|
@ -405,7 +405,10 @@ class Config(object):
|
|||
self.invoke_all("generate_files", config)
|
||||
return
|
||||
|
||||
self.invoke_all("read_config", config)
|
||||
self.parse_config_dict(config)
|
||||
|
||||
def parse_config_dict(self, config_dict):
|
||||
self.invoke_all("read_config", config_dict)
|
||||
|
||||
|
||||
def find_config_files(search_paths):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue