Skip to content

Commit

Permalink
refactor: Install & test - CPython 3.7 (ubuntu), codeco (4).
Browse files Browse the repository at this point in the history
  • Loading branch information
Ajnus committed Oct 30, 2024
1 parent 91954e0 commit 09ba862
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/model/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -3988,8 +3988,8 @@ def test__handle_user_settings_event(self, mocker, model, value):
assert model.user_settings()[setting] == value

@pytest.mark.parametrize("setting", [True, False])
def test_update_dm_content_in_desktop_notifications(self, mocker, model, setting):
setting_name = "dm_content_in_desktop_notifications"
def test_update_pm_content_in_desktop_notifications(self, mocker, model, setting):
setting_name = "pm_content_in_desktop_notifications"
event = {
"type": "update_global_notifications",
"notification_name": setting_name,
Expand Down
2 changes: 1 addition & 1 deletion zulipterminal/ui_tools/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ def users_view(self, users: Any = None) -> Any:
# Only include `inactive` users in search result.
if status == "inactive" and not self.view.controller.is_in_editor_mode():
continue
unread_count = self.view.model.unread_counts["unread_dms"].get(
unread_count = self.view.model.unread_counts["unread_pms"].get(
user["user_id"], 0
)
is_current_user = user["user_id"] == self.view.model.user_id
Expand Down

0 comments on commit 09ba862

Please sign in to comment.