diff options
author | Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> | 2022-05-23 13:23:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-23 11:23:26 +0000 |
commit | 444588c5fc5e4fd0f3796d389fe5f062acc55286 (patch) | |
tree | 9fc7c743e6f3b19361f61035a0e6c381e782e947 /tests/scripts/test_new_matrix_user.py | |
parent | Fix Complement `TestCanRegisterAdmin` with workers, by adding Complement's sh... (diff) | |
download | synapse-444588c5fc5e4fd0f3796d389fe5f062acc55286.tar.xz |
Add some type hints to tests files (#12833)
Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
Diffstat (limited to 'tests/scripts/test_new_matrix_user.py')
-rw-r--r-- | tests/scripts/test_new_matrix_user.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/scripts/test_new_matrix_user.py b/tests/scripts/test_new_matrix_user.py index 19a145eeb6..22f99c6ab1 100644 --- a/tests/scripts/test_new_matrix_user.py +++ b/tests/scripts/test_new_matrix_user.py @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. +from typing import List from unittest.mock import Mock, patch from synapse._scripts.register_new_matrix_user import request_registration @@ -49,8 +50,8 @@ class RegisterTestCase(TestCase): requests.post = post # The fake stdout will be written here - out = [] - err_code = [] + out: List[str] = [] + err_code: List[int] = [] with patch("synapse._scripts.register_new_matrix_user.requests", requests): request_registration( @@ -85,8 +86,8 @@ class RegisterTestCase(TestCase): requests.get = get # The fake stdout will be written here - out = [] - err_code = [] + out: List[str] = [] + err_code: List[int] = [] with patch("synapse._scripts.register_new_matrix_user.requests", requests): request_registration( @@ -137,8 +138,8 @@ class RegisterTestCase(TestCase): requests.post = post # The fake stdout will be written here - out = [] - err_code = [] + out: List[str] = [] + err_code: List[int] = [] with patch("synapse._scripts.register_new_matrix_user.requests", requests): request_registration( |