From 21e286c5d2bfee3dcf3a4f64bf8110a7246af5b9 Mon Sep 17 00:00:00 2001 From: Humberto Rocha Date: Sat, 4 Feb 2023 23:33:01 -0500 Subject: [PATCH] Fix linter fails with the CI (#497) --- templates/identity/view.html | 8 ++++---- tests/users/views/settings/test_privacy.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/templates/identity/view.html b/templates/identity/view.html index 805b45f..297aaac 100644 --- a/templates/identity/view.html +++ b/templates/identity/view.html @@ -68,10 +68,10 @@
{{ post_count }} posts - {% if identity.local and identity.config_identity.visible_follows %} - {{ following_count }} following - {{ followers_count }} follower{{ followers_count|pluralize }} - {% endif %} + {% if identity.local and identity.config_identity.visible_follows %} + {{ following_count }} following + {{ followers_count }} follower{{ followers_count|pluralize }} + {% endif %}
{% if not identity.local %} diff --git a/tests/users/views/settings/test_privacy.py b/tests/users/views/settings/test_privacy.py index 680a61f..a40c881 100644 --- a/tests/users/views/settings/test_privacy.py +++ b/tests/users/views/settings/test_privacy.py @@ -23,7 +23,7 @@ def test_visible_follows_disabled(client, identity): """ Config.set_identity(identity, "visible_follows", True) response = client.get(identity.urls.view) - assertContains(response, 'follower', status_code=200) + assertContains(response, "follower", status_code=200) Config.set_identity(identity, "visible_follows", False) response = client.get(identity.urls.view) - assertNotContains(response, 'follower', status_code=200) + assertNotContains(response, "follower", status_code=200)