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.

test_support_views: Move incorrectly class-scoped code inside method.

Anders Kaseorg84a196641ada
diff --git a/analytics/tests/test_support_views.py b/analytics/tests/test_support_views.py
index ea2f62bf749..4e5538deea4 100644
--- a/analytics/tests/test_support_views.py
+++ b/analytics/tests/test_support_views.py
@@ -34,12 +34,12 @@ class TestRemoteServerSupportEndpoint(ZulipTestCase):
def setUp(self) -> None:
super().setUp()
- # Set up some initial example data.
- for i in range(20):
- hostname = f"zulip-{i}.example.com"
- RemoteZulipServer.objects.create(
- hostname=hostname, contact_email=f"admin@{hostname}", plan_type=1, uuid=uuid.uuid4()
- )
+ # Set up some initial example data.
+ for i in range(20):
+ hostname = f"zulip-{i}.example.com"
+ RemoteZulipServer.objects.create(
+ hostname=hostname, contact_email=f"admin@{hostname}", plan_type=1, uuid=uuid.uuid4()
+ )
def test_search(self) -> None:
self.login("cordelia")