test_support_views: Move incorrectly class-scoped code inside method.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2023-10-12 10:45:37 -07:00 committed by Tim Abbott
parent b4ff5ee0e1
commit 84a196641a
1 changed files with 6 additions and 6 deletions

View File

@ -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")