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:
Sahil Batra 2021-08-01 13:42:26 +05:30 committed by Tim Abbott
parent aeb0dc7269
commit e73d2fff97

View File

@ -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)