Skip to content

Commit 0b2c405

Browse files
committed
boxes/buttons/views/test_model: Minor formatting changes from make fix.
1 parent 82c00c1 commit 0b2c405

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

tests/model/test_model.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -283,15 +283,15 @@ def test_set_narrow_not_already_set(self, model, initial_narrow, narrow,
283283
}
284284
}, {0, 1}),
285285
([['stream', 'FOO'],
286-
['topic', 'BOO']], {
286+
['topic', 'BOO']], {
287287
'topic_msg_ids': {
288288
1: {
289289
'BOO': {0, 1}
290290
}
291291
}
292292
}, {0, 1}),
293293
([['stream', 'FOO'], # Covers one empty-set case
294-
['topic', 'BOOBOO']], {
294+
['topic', 'BOOBOO']], {
295295
'topic_msg_ids': {
296296
1: {
297297
'BOO': {0, 1}
@@ -859,11 +859,11 @@ def test__handle_message_event(self, mocker, user_profile, response,
859859
@pytest.mark.parametrize(['topic_name', 'topic_order_initial',
860860
'topic_order_final'], [
861861
('TOPIC3', ['TOPIC2', 'TOPIC3', 'TOPIC1'],
862-
['TOPIC3', 'TOPIC2', 'TOPIC1']),
862+
['TOPIC3', 'TOPIC2', 'TOPIC1']),
863863
('TOPIC1', ['TOPIC1', 'TOPIC2', 'TOPIC3'],
864-
['TOPIC1', 'TOPIC2', 'TOPIC3']),
864+
['TOPIC1', 'TOPIC2', 'TOPIC3']),
865865
('TOPIC4', ['TOPIC1', 'TOPIC2', 'TOPIC3'],
866-
['TOPIC4', 'TOPIC1', 'TOPIC2', 'TOPIC3']),
866+
['TOPIC4', 'TOPIC1', 'TOPIC2', 'TOPIC3']),
867867
('TOPIC1', [], ['TOPIC1'])
868868
], ids=['reorder_topic3', 'topic1_discussion_continues', 'new_topic4',
869869
'first_topic_1'])
@@ -1321,7 +1321,7 @@ def test_update_star_status(self, mocker, model, event_op,
13211321
assert model.index['messages'][changed_id]['flags'] == flags_after
13221322
(model._update_rendered_view.
13231323
assert_has_calls([mocker.call(changed_id)
1324-
for changed_id in changed_ids]))
1324+
for changed_id in changed_ids]))
13251325

13261326
for unchanged_id in (set(indexed_ids) - set(event_message_ids)):
13271327
assert (model.index['messages'][unchanged_id]['flags']
@@ -1533,7 +1533,7 @@ def test__handle_subscription_event_mute_streams(self, model, mocker,
15331533
model.controller.update_screen.assert_called_once_with()
15341534

15351535
@pytest.mark.parametrize(['event', 'expected_pinned_streams',
1536-
'expected_unpinned_streams'], [
1536+
'expected_unpinned_streams'], [
15371537
(
15381538
{
15391539
'property': 'pin_to_top',

zulipterminal/ui_tools/boxes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,6 +1146,7 @@ class PanelSearchBox(urwid.Edit):
11461146
"""
11471147
Search Box to search panel views in real-time.
11481148
"""
1149+
11491150
def __init__(self, panel_view: Any, search_command: str,
11501151
update_function: Callable[..., None]) -> None:
11511152
self.panel_view = panel_view

zulipterminal/ui_tools/buttons.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,4 +272,3 @@ def handle_link(self, *_: Any) -> None:
272272
"""
273273
Classifies and handles link.
274274
"""
275-
pass

zulipterminal/ui_tools/views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ class StreamsViewDivider(urwid.Divider):
256256
"""
257257
A custom urwid.Divider to visually separate pinned and unpinned streams.
258258
"""
259+
259260
def __init__(self) -> None:
260261
# FIXME: Necessary since the divider is treated as a StreamButton.
261262
# NOTE: This is specifically for stream search to work correctly.

0 commit comments

Comments
 (0)