mirror of https://github.com/zulip/zulip.git
pep8: Add compliance with rule E261 to analytics/tests/test_views.py.
This commit is contained in:
parent
09419aa027
commit
061cb9ae44
|
@ -262,7 +262,7 @@ class TestGetChartDataHelpers(ZulipTestCase):
|
|||
|
||||
def test_sort_by_totals(self):
|
||||
# type: () -> None
|
||||
empty = [] # type: List[int]
|
||||
empty = [] # type: List[int]
|
||||
value_arrays = {'c': [0, 1], 'a': [9], 'b': [1, 1, 1], 'd': empty}
|
||||
self.assertEqual(sort_by_totals(value_arrays), ['a', 'b', 'c', 'd'])
|
||||
|
||||
|
@ -277,7 +277,7 @@ class TestTimeRange(ZulipTestCase):
|
|||
# type: () -> None
|
||||
HOUR = timedelta(hours=1)
|
||||
DAY = timedelta(days=1)
|
||||
TZINFO = get_fixed_timezone(-100) # 100 minutes west of UTC
|
||||
TZINFO = get_fixed_timezone(-100) # 100 minutes west of UTC
|
||||
|
||||
# Using 22:59 so that converting to UTC and applying floor_to_{hour,day} do not commute
|
||||
a_time = datetime(2016, 3, 14, 22, 59).replace(tzinfo=TZINFO)
|
||||
|
|
Loading…
Reference in New Issue