registration: Use PreregistrationRealm object for realm creation.

We now use PreregistrationRealm objects in registration_helper
function when creating new realms instead of PreregistrationUser
objects.

Fixes part of #24307.
This commit is contained in:
Sahil Batra
2023-03-03 19:27:40 +05:30
committed by Tim Abbott
parent 54771cfe94
commit 765e65f954
2 changed files with 65 additions and 30 deletions

View File

@@ -937,7 +937,7 @@ class LoginTest(ZulipTestCase):
ContentType.objects.clear_cache()
# Ensure the number of queries we make is not O(streams)
with self.assert_database_query_count(93), cache_tries_captured() as cache_tries:
with self.assert_database_query_count(94), cache_tries_captured() as cache_tries:
with self.captureOnCommitCallbacks(execute=True):
self.register(self.nonreg_email("test"), "test")