mirror of
https://github.com/zulip/zulip.git
synced 2026-07-06 21:18:58 +08:00
tests: Remove separate event tests for "enable_drafts_synchronization".
We do not require separate tests for checking events when changing "enable_drafts_synchronization" as we already do this in the display settings test because this setting is included in property_types.
This commit is contained in:
parent
aeb0dc7269
commit
e73d2fff97
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user