Skip to content

Commit f843a18

Browse files
committed
refactor: Install & test - CPython 3.7 (ubuntu), codeco (4).
1 parent f55d757 commit f843a18

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/model/test_model.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3988,8 +3988,8 @@ def test__handle_user_settings_event(self, mocker, model, value):
39883988
assert model.user_settings()[setting] == value
39893989

39903990
@pytest.mark.parametrize("setting", [True, False])
3991-
def test_update_dm_content_in_desktop_notifications(self, mocker, model, setting):
3992-
setting_name = "dm_content_in_desktop_notifications"
3991+
def test_update_pm_content_in_desktop_notifications(self, mocker, model, setting):
3992+
setting_name = "pm_content_in_desktop_notifications"
39933993
event = {
39943994
"type": "update_global_notifications",
39953995
"notification_name": setting_name,

zulipterminal/ui_tools/views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ def users_view(self, users: Any = None) -> Any:
730730
# Only include `inactive` users in search result.
731731
if status == "inactive" and not self.view.controller.is_in_editor_mode():
732732
continue
733-
unread_count = self.view.model.unread_counts["unread_dms"].get(
733+
unread_count = self.view.model.unread_counts["unread_pms"].get(
734734
user["user_id"], 0
735735
)
736736
is_current_user = user["user_id"] == self.view.model.user_id

0 commit comments

Comments
 (0)