mirror of
https://github.com/zulip/zulip.git
synced 2026-07-15 21:03:26 +08:00
tests: update invite tests to reflect text changes.
(imported from commit a3d0d0068a0b51cdf7840891e6b5a17cc0c083d2)
This commit is contained in:
parent
1fcf43c289
commit
b35a529ef3
@ -1120,9 +1120,9 @@ earl-test@humbughq.com""", ["Denmark"]))
|
||||
for user in ("bob", "carol", "dave", "earl"):
|
||||
self.assertTrue(find_key_by_email("%s-test@humbughq.com" % user))
|
||||
|
||||
def test_missing_params(self):
|
||||
def test_missing_or_invalid_params(self):
|
||||
"""
|
||||
Tests inviting with various invalid parameters.
|
||||
Tests inviting with various missing or invalid parameters.
|
||||
"""
|
||||
self.login("hamlet@humbughq.com")
|
||||
self.assert_json_error(
|
||||
@ -1132,7 +1132,7 @@ earl-test@humbughq.com""", ["Denmark"]))
|
||||
for address in ("noatsign.com", "outsideyourdomain@example.net"):
|
||||
self.assert_json_error(
|
||||
self.invite(address, ["Denmark"]),
|
||||
"Some emails did not validate. No invites have been sent.")
|
||||
"Some emails did not validate, so we didn't send any invitations.")
|
||||
|
||||
def test_invalid_stream(self):
|
||||
"""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user