def test_sync_log_invalidation_bug(self): sync_log = FormProcessorInterface().sync_log_model( user_id='6dac4940-913e-11e0-9d4b-005056aa7fb5' ) sync_log.save() _, _, [case] = self._doCreateCaseWithMultimedia() # this used to fail before we fixed http://manage.dimagi.com/default.asp?158373 self._doSubmitUpdateWithMultimedia(new_attachments=['commcare_logo_file'], removes=[], sync_token=sync_log._id) FormProcessorTestUtils.delete_all_sync_logs()
def tearDownClass(cls): FormProcessorTestUtils.delete_all_xforms(cls.domain) FormProcessorTestUtils.delete_all_sync_logs() cls.project.delete() super(TestSyncPurge, cls).tearDownClass()
def delete_all_sync_logs(): FormProcessorTestUtils.delete_all_sync_logs()
def delete_all_sync_logs(): FormProcessorTestUtils.delete_all_sync_logs()