tests: Switch test_i18n fetch helper to use client_foo methods.

38f2a2f475 updated the comment but not the code.  Using
`self.client.post` instead of `self.client_post` means that we do not
set the host headers correctly.
This commit is contained in:
Alex Vandiver 2023-08-10 22:13:04 +00:00 committed by Tim Abbott
parent 646128db9e
commit 54605e54b6
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ class TranslationTestCase(ZulipTestCase):
def fetch( def fetch(
self, method: str, url: str, expected_status: int, **kwargs: Any self, method: str, url: str, expected_status: int, **kwargs: Any
) -> "TestHttpResponse": ) -> "TestHttpResponse":
response = getattr(self.client, method)(url, **kwargs) response = getattr(self, f"client_{method}")(url, **kwargs)
self.assertEqual( self.assertEqual(
response.status_code, response.status_code,
expected_status, expected_status,