mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-28 01:25:30 -04:00
Add missing type hints to tests.config. (#14681)
This commit is contained in:
parent
864c3f85b0
commit
3aeca2588b
18 changed files with 108 additions and 103 deletions
|
@ -17,15 +17,15 @@ from tests.config.utils import ConfigFileTestCase
|
|||
|
||||
|
||||
class ConfigMainFileTestCase(ConfigFileTestCase):
|
||||
def test_executes_without_an_action(self):
|
||||
def test_executes_without_an_action(self) -> None:
|
||||
self.generate_config()
|
||||
main(["", "-c", self.config_file])
|
||||
|
||||
def test_read__error_if_key_not_found(self):
|
||||
def test_read__error_if_key_not_found(self) -> None:
|
||||
self.generate_config()
|
||||
with self.assertRaises(SystemExit):
|
||||
main(["", "read", "foo.bar.hello", "-c", self.config_file])
|
||||
|
||||
def test_read__passes_if_key_found(self):
|
||||
def test_read__passes_if_key_found(self) -> None:
|
||||
self.generate_config()
|
||||
main(["", "read", "server.server_name", "-c", self.config_file])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue