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: Remove separate event tests for "enable_drafts_synchronization".

Sahil Batrae73d2fff970a
diff --git a/zerver/tests/test_events.py b/zerver/tests/test_events.py
index 043ad03f2d8..920627f5e6c 100644
--- a/zerver/tests/test_events.py
+++ b/zerver/tests/test_events.py
@@ -2306,9 +2306,6 @@ class DraftActionTest(BaseAction):
def do_enable_drafts_synchronization(self, user_profile: UserProfile) -> None:
do_set_user_display_setting(user_profile, "enable_drafts_synchronization", True)
- def do_disable_drafts_synchronization(self, user_profile: UserProfile) -> None:
- do_set_user_display_setting(user_profile, "enable_drafts_synchronization", False)
-
def test_draft_create_event(self) -> None:
self.do_enable_drafts_synchronization(self.user_profile)
dummy_draft = {
@@ -2347,13 +2344,3 @@ class DraftActionTest(BaseAction):
draft_id = do_create_drafts([dummy_draft], self.user_profile)[0].id
action = lambda: do_delete_draft(draft_id, self.user_profile)
self.verify_action(action)
-
- def test_enable_syncing_drafts(self) -> None:
- self.do_disable_drafts_synchronization(self.user_profile)
- action = lambda: self.do_enable_drafts_synchronization(self.user_profile)
- self.verify_action(action)
-
- def test_disable_syncing_drafts(self) -> None:
- self.do_enable_drafts_synchronization(self.user_profile)
- action = lambda: self.do_disable_drafts_synchronization(self.user_profile)
- self.verify_action(action)