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.

tests: Specify the update_fields in test_activity.

Vishnu KS46c902686d1a
diff --git a/zerver/tests/test_presence.py b/zerver/tests/test_presence.py
index b67d79521c6..82b6545d8aa 100644
--- a/zerver/tests/test_presence.py
+++ b/zerver/tests/test_presence.py
@@ -45,7 +45,7 @@ class ActivityTest(ZulipTestCase):
user_profile = self.example_user("hamlet")
user_profile.is_staff = True
- user_profile.save()
+ user_profile.save(update_fields=["is_staff"])
flush_per_request_caches()
with queries_captured() as queries: