Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

test_sessions: Fix unnecessarily hard-coded user id.

Mateusz Manderaaf29bd77a04a
diff --git a/zerver/tests/test_sessions.py b/zerver/tests/test_sessions.py
index a7e65a3c65e..8ed57373dc7 100644
--- a/zerver/tests/test_sessions.py
+++ b/zerver/tests/test_sessions.py
@@ -103,7 +103,8 @@ class TestSessions(ZulipTestCase):
with self.assertLogs(level="INFO") as info_logs:
delete_all_deactivated_user_sessions()
self.assertEqual(
- info_logs.output, ["INFO:root:Deactivating session for deactivated user 8"]
+ info_logs.output,
+ [f"INFO:root:Deactivating session for deactivated user {user_profile_3.id}"],
)
result = self.client_get("/")
self.check_rendered_spectator(result)