pep8: Add compliance with rule E261 to tests/test_signup.py.

This commit is contained in:
Aditya Bansal 2017-07-12 01:11:31 +05:30 committed by Tim Abbott
parent 59b26e582a
commit 2643a40176
2 changed files with 3 additions and 4 deletions

View File

@ -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',
]

View File

@ -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 "