Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
soft_deactivation: Fix typo in logging output.
Tim Abbott3242fc7388ab
diff --git a/zerver/lib/soft_deactivation.py b/zerver/lib/soft_deactivation.pyindex d5554c7f9b0..ee6e955f28f 100644--- a/zerver/lib/soft_deactivation.py+++ b/zerver/lib/soft_deactivation.py@@ -254,7 +254,7 @@ def do_auto_soft_deactivate_users(inactive_for_days: int, realm: Optional[Realm]users_deactivated = do_soft_deactivate_users(users_to_deactivate)if not settings.AUTO_CATCH_UP_SOFT_DEACTIVATED_USERS:- logger.info('Not catching up users since AUTO_CATCH_UP_SOFT_DEACTIVATED_USERS if off')+ logger.info('Not catching up users since AUTO_CATCH_UP_SOFT_DEACTIVATED_USERS is off')return users_deactivatedif realm is not None:diff --git a/zerver/tests/test_soft_deactivation.py b/zerver/tests/test_soft_deactivation.pyindex 3d35c5cc655..88fb38afa11 100644--- a/zerver/tests/test_soft_deactivation.py+++ b/zerver/tests/test_soft_deactivation.py@@ -276,7 +276,7 @@ class UserSoftDeactivationTests(ZulipTestCase):with self.settings(AUTO_CATCH_UP_SOFT_DEACTIVATED_USERS=False):with self.assertLogs(logger_string, level="INFO") as m:users_deactivated = do_auto_soft_deactivate_users(-1, realm)- self.assertEqual(m.output, [f"INFO:{logger_string}:Not catching up users since AUTO_CATCH_UP_SOFT_DEACTIVATED_USERS if off"])+ self.assertEqual(m.output, [f"INFO:{logger_string}:Not catching up users since AUTO_CATCH_UP_SOFT_DEACTIVATED_USERS is off"])self.assert_length(users_deactivated, 0) # all users are already deactivatedreceived_count = UserMessage.objects.filter(user_profile__in=users,