mirror of https://github.com/zulip/zulip.git
do_create_realm: Require passing kwargs by name.
This commit is contained in:
parent
d91d3a05b9
commit
e42354c917
|
@ -4385,6 +4385,7 @@ def do_change_stream_message_retention_days(
|
|||
def do_create_realm(
|
||||
string_id: str,
|
||||
name: str,
|
||||
*,
|
||||
emails_restricted_to_domains: Optional[bool] = None,
|
||||
date_created: Optional[datetime.datetime] = None,
|
||||
) -> Realm:
|
||||
|
|
|
@ -5348,7 +5348,7 @@ class TestZulipLDAPUserPopulator(ZulipLDAPTestCase):
|
|||
)
|
||||
|
||||
def test_user_in_multiple_realms(self) -> None:
|
||||
test_realm = do_create_realm("test", "test", False)
|
||||
test_realm = do_create_realm("test", "test", emails_restricted_to_domains=False)
|
||||
hamlet = self.example_user("hamlet")
|
||||
email = hamlet.delivery_email
|
||||
hamlet2 = do_create_user(email, None, test_realm, hamlet.full_name, acting_user=None)
|
||||
|
|
|
@ -3974,7 +3974,7 @@ class UserSignUpTest(InviteUserBase):
|
|||
ldap_user_attr_map = {
|
||||
"full_name": "cn",
|
||||
}
|
||||
do_create_realm("test", "test", False)
|
||||
do_create_realm("test", "test", emails_restricted_to_domains=False)
|
||||
|
||||
with self.settings(
|
||||
POPULATE_PROFILE_VIA_LDAP=True,
|
||||
|
|
Loading…
Reference in New Issue