Example #1
0
    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()
Example #2
0
 def tearDown(self):
     FormProcessorTestUtils.delete_all_xforms()
Example #3
0
 def tearDownClass(cls):
     FormProcessorTestUtils.delete_all_xforms(DOMAIN)
Example #4
0
def delete_all_sync_logs():
    FormProcessorTestUtils.delete_all_sync_logs()
Example #5
0
def delete_all_xforms():
    FormProcessorTestUtils.delete_all_xforms()
Example #6
0
def delete_all_cases():
    FormProcessorTestUtils.delete_all_cases()
Example #7
0
 def tearDown(self):
     FormProcessorTestUtils.delete_all_xforms()
     UnfinishedSubmissionStub.objects.all().delete()
Example #8
0
 def setUpClass(cls):
     FormProcessorTestUtils.delete_all_cases(DOMAIN)
     FormProcessorTestUtils.delete_all_xforms(DOMAIN)
Example #9
0
 def tearDown(self):
     FormProcessorTestUtils.delete_all_xforms(TEST_DOMAIN, self.user1._id)
Example #10
0
 def setUp(self):
     self.interface = FormProcessorInterface()
     FormProcessorTestUtils.delete_all_cases()
     FormProcessorTestUtils.delete_all_xforms()