summary refs log tree commit diff
path: root/tests/config/test___main__.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2022-12-16 08:53:28 -0500
committerGitHub <noreply@github.com>2022-12-16 08:53:28 -0500
commit3aeca2588b79111a48a6083c88efc4d68a2cea19 (patch)
treecd1850aba9ddcb05a9b357541a5c20b6ca617b99 /tests/config/test___main__.py
parentImprove type annotations for the helper methods on a `CachedFunction`. (#14685) (diff)
downloadsynapse-3aeca2588b79111a48a6083c88efc4d68a2cea19.tar.xz
Add missing type hints to tests.config. (#14681)
Diffstat (limited to 'tests/config/test___main__.py')
-rw-r--r--tests/config/test___main__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/config/test___main__.py b/tests/config/test___main__.py
index b1c73d3612..cb5d4b05c3 100644
--- a/tests/config/test___main__.py
+++ b/tests/config/test___main__.py
@@ -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])