mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
registration: Rename source_realm field to source_realm_id.
Now that we are passing source realm's id instead of string_id in source realm selector, it makes sense to rename the "source_realm" field to "source_realm_id".
This commit is contained in:
committed by
Tim Abbott
parent
4262c04db1
commit
55da3329ef
@@ -3611,7 +3611,7 @@ class UserSignUpTest(InviteUserBase):
|
||||
result = self.client_get(confirmation_url, subdomain=subdomain)
|
||||
self.assertEqual(result.status_code, 200)
|
||||
result = self.submit_reg_form_for_user(
|
||||
email, password, source_realm="", HTTP_HOST=subdomain + ".testserver"
|
||||
email, password, source_realm_id="", HTTP_HOST=subdomain + ".testserver"
|
||||
)
|
||||
|
||||
hamlet = get_user(self.example_email("hamlet"), realm)
|
||||
@@ -3667,7 +3667,7 @@ class UserSignUpTest(InviteUserBase):
|
||||
result = self.submit_reg_form_for_user(
|
||||
email,
|
||||
password,
|
||||
source_realm=str(hamlet_in_zulip.realm.id),
|
||||
source_realm_id=str(hamlet_in_zulip.realm.id),
|
||||
HTTP_HOST=subdomain + ".testserver",
|
||||
)
|
||||
|
||||
@@ -3750,7 +3750,7 @@ class UserSignUpTest(InviteUserBase):
|
||||
password,
|
||||
realm_subdomain=realm.string_id,
|
||||
realm_name=realm_name,
|
||||
source_realm=str(realm.id),
|
||||
source_realm_id=str(realm.id),
|
||||
)
|
||||
self.assert_in_success_response(
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user