From dcadd8bcb3763ad99a39732c02623a459c65b041 Mon Sep 17 00:00:00 2001 From: Andrew Northall Date: Tue, 19 Dec 2023 10:06:18 +0000 Subject: [PATCH] Remove public_statistics option --- app/logger/tests/test_user_profile.py | 19 ------------------- app/logger/views/userprofile.py | 8 +++----- app/templates/users/account.html | 14 -------------- app/users/admin.py | 1 - app/users/factories.py | 1 - app/users/forms.py | 2 -- ...044_remove_cavinguser_public_statistics.py | 16 ++++++++++++++++ app/users/models.py | 8 -------- app/users/tests/test_custom_user_model.py | 2 -- 9 files changed, 19 insertions(+), 52 deletions(-) create mode 100644 app/users/migrations/0044_remove_cavinguser_public_statistics.py diff --git a/app/logger/tests/test_user_profile.py b/app/logger/tests/test_user_profile.py index ad32124a..9cb5363a 100644 --- a/app/logger/tests/test_user_profile.py +++ b/app/logger/tests/test_user_profile.py @@ -156,25 +156,6 @@ def test_user_profile_page_with_various_privacy_settings(self): self.assertEqual(response.status_code, 200) self.assertContains(response, self.user.name) - @tag("privacy") - def test_public_statistics_privacy_setting(self): - """Test that the public statistics privacy setting works""" - for i in range(0, 50): - TripFactory(user=self.user) - self.user.public_statistics = False - self.user.save() - - response = self.client.get(self.user.get_absolute_url()) - self.assertEqual(response.status_code, 200) - self.assertNotContains(response, '
Profile settings
-
- - - -
-