mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-31 01:58:44 -04:00
Add missing type hints to config classes. (#12402)
This commit is contained in:
parent
214f3b7d21
commit
4586119f0b
51 changed files with 263 additions and 151 deletions
|
@ -35,7 +35,7 @@ class ServerConfigTestCase(unittest.TestCase):
|
|||
def test_unsecure_listener_no_listeners_open_private_ports_false(self):
|
||||
conf = yaml.safe_load(
|
||||
ServerConfig().generate_config_section(
|
||||
"che.org", "/data_dir_path", False, None, config_dir_path="CONFDIR"
|
||||
"CONFDIR", "/data_dir_path", "che.org", False, None
|
||||
)
|
||||
)
|
||||
|
||||
|
@ -55,7 +55,7 @@ class ServerConfigTestCase(unittest.TestCase):
|
|||
def test_unsecure_listener_no_listeners_open_private_ports_true(self):
|
||||
conf = yaml.safe_load(
|
||||
ServerConfig().generate_config_section(
|
||||
"che.org", "/data_dir_path", True, None, config_dir_path="CONFDIR"
|
||||
"CONFDIR", "/data_dir_path", "che.org", True, None
|
||||
)
|
||||
)
|
||||
|
||||
|
@ -89,7 +89,7 @@ class ServerConfigTestCase(unittest.TestCase):
|
|||
|
||||
conf = yaml.safe_load(
|
||||
ServerConfig().generate_config_section(
|
||||
"this.one.listens", "/data_dir_path", True, listeners, "CONFDIR"
|
||||
"CONFDIR", "/data_dir_path", "this.one.listens", True, listeners
|
||||
)
|
||||
)
|
||||
|
||||
|
@ -123,7 +123,7 @@ class ServerConfigTestCase(unittest.TestCase):
|
|||
|
||||
conf = yaml.safe_load(
|
||||
ServerConfig().generate_config_section(
|
||||
"this.one.listens", "/data_dir_path", True, listeners, "CONFDIR"
|
||||
"CONFDIR", "/data_dir_path", "this.one.listens", True, listeners
|
||||
)
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue