Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

tests: Switch test_i18n fetch helper to use client_foo methods.

Alex Vandiver54605e54b6f8
diff --git a/zerver/tests/test_i18n.py b/zerver/tests/test_i18n.py
index d0f25da540f..54dddfed623 100644
--- a/zerver/tests/test_i18n.py
+++ b/zerver/tests/test_i18n.py
@@ -90,7 +90,7 @@ class TranslationTestCase(ZulipTestCase):
def fetch(
self, method: str, url: str, expected_status: int, **kwargs: Any
) -> "TestHttpResponse":
- response = getattr(self.client, method)(url, **kwargs)
+ response = getattr(self, f"client_{method}")(url, **kwargs)
self.assertEqual(
response.status_code,
expected_status,