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

This commit is contained in:
Aditya Bansal 2017-07-12 01:09:43 +05:30 committed by Tim Abbott
parent 0970d29ec1
commit 59b26e582a
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_realm.py',
'zerver/tests/test_signup.py',
'zerver/tests/test_subs.py',
'zerver/tests/test_upload.py',

View File

@ -233,7 +233,7 @@ class RealmAPITest(ZulipTestCase):
# type: (str, Union[Text, int, bool]) -> Realm
result = self.client_patch('/json/realm', {name: ujson.dumps(value)})
self.assert_json_success(result)
return get_realm('zulip') # refresh data
return get_realm('zulip') # refresh data
def do_test_realm_update_api(self, name):
# type: (str) -> None
@ -244,14 +244,14 @@ class RealmAPITest(ZulipTestCase):
assertion error.
"""
bool_tests = [False, True] # type: List[bool]
bool_tests = [False, True] # type: List[bool]
test_values = dict(
default_language=[u'de', u'en'],
description=[u'Realm description', u'New description'],
message_retention_days=[10, 20],
name=[u'Zulip', u'New Name'],
waiting_period_threshold=[10, 20],
) # type: Dict[str, Any]
) # type: Dict[str, Any]
vals = test_values.get(name)
if Realm.property_types[name] is bool:
vals = bool_tests