def test_disabling(self):
        # with context
        with DisableSynchroLog():
            TestModel.objects.create(name='James')
        self.synchronize()
        self.assertLocalCount(1, TestModel)
        self.assertRemoteCount(0, TestModel)

        # with decorator
        @disable_synchro_log
        def create():
            PkModelWithSkip.objects.create(name='James')
        create()
        self.synchronize()
        self.assertLocalCount(1, PkModelWithSkip)
        self.assertRemoteCount(0, PkModelWithSkip)
Test if logging can be disabled.
dataset/ETHPy150Open zlorf/django-synchro/synchro/tests.py/AdvancedSynchroTests.test_disabling