mirror of https://github.com/zulip/zulip.git
pep8: Add compliance with rule E261 to tests/test_signup.py.
This commit is contained in:
parent
59b26e582a
commit
2643a40176
|
@ -78,7 +78,6 @@ def check_pep8(files):
|
|||
|
||||
# TODO: Clear up this list of violations.
|
||||
IGNORE_FILES_PEPE261 = [
|
||||
'zerver/tests/test_signup.py',
|
||||
'zerver/tests/test_subs.py',
|
||||
'zerver/tests/test_upload.py',
|
||||
]
|
||||
|
|
|
@ -1326,7 +1326,7 @@ class UserSignUpTest(ZulipTestCase):
|
|||
realm.save()
|
||||
with self.settings(REALMS_HAVE_SUBDOMAINS = True):
|
||||
request = HostRequestMock(host = realm.host)
|
||||
request.session = {} # type: ignore
|
||||
request.session = {} # type: ignore
|
||||
email = 'user@acme.com'
|
||||
form = HomepageForm({'email': email}, realm=realm)
|
||||
self.assertIn("Your email address, {}, is not in one of the domains".format(email),
|
||||
|
@ -1338,7 +1338,7 @@ class UserSignUpTest(ZulipTestCase):
|
|||
realm.invite_required = True
|
||||
realm.save()
|
||||
request = HostRequestMock(host = realm.host)
|
||||
request.session = {} # type: ignore
|
||||
request.session = {} # type: ignore
|
||||
email = 'user@zulip.com'
|
||||
form = HomepageForm({'email': email}, realm=realm)
|
||||
self.assertIn("Please request an invite for {} from".format(email),
|
||||
|
@ -1348,7 +1348,7 @@ class UserSignUpTest(ZulipTestCase):
|
|||
# type: () -> None
|
||||
with self.settings(REALMS_HAVE_SUBDOMAINS = True):
|
||||
request = HostRequestMock(host = 'acme.' + settings.EXTERNAL_HOST)
|
||||
request.session = {} # type: ignore
|
||||
request.session = {} # type: ignore
|
||||
email = 'user@acme.com'
|
||||
form = HomepageForm({'email': email}, realm=None)
|
||||
self.assertIn("organization you are trying to join using {} does "
|
||||
|
|
Loading…
Reference in New Issue