diff --git a/analytics/tests/test_support_views.py b/analytics/tests/test_support_views.py index bccea0bca8..98dfd7841f 100644 --- a/analytics/tests/test_support_views.py +++ b/analytics/tests/test_support_views.py @@ -28,6 +28,7 @@ if TYPE_CHECKING: class TestSupportEndpoint(ZulipTestCase): def test_search(self) -> None: reset_emails_in_zulip_realm() + lear_realm = get_realm("lear") def assert_user_details_in_html_response( html_response: "TestHttpResponse", full_name: str, email: str, role: str @@ -106,7 +107,6 @@ class TestSupportEndpoint(ZulipTestCase): ) def check_lear_realm_query_result(result: "TestHttpResponse") -> None: - lear_realm = get_realm("lear") self.assert_in_success_response( [ f'