def test_settings_without_remote(self):
        import synchro.management.commands.synchronize
        with override_settings(SYNCHRO_REMOTE=None):
            reload(synchro_settings)
            reload(synchro.management.commands.synchronize)
            self.assertIsNone(synchro_settings.REMOTE)
            self.assertLocalCount(0, ChangeLog)
            TestModel.objects.create(name='James', cash=7)
            self.assertLocalCount(1, TestModel)
            # ChangeLog created successfully despite lack of REMOTE
            self.assertLocalCount(1, ChangeLog)

            from django import get_version
            if get_version() >= '1.5':
                self.assertRaises(CommandError, self.synchronize)
            else:
                # Because of BaseCommand bug (#18387, fixed in Django 1.5), we cannot use
                # CommandError in tests: it is being caught and results in sys.exit(1).
                class ExceptionStub(Exception):
                    pass
                with self.assertRaises(ExceptionStub):
                    self.synchronize(exception_class=ExceptionStub)

        # Restore previous state
        reload(synchro_settings)
        reload(synchro.management.commands.synchronize)
        self.assertEqual(REMOTE, synchro_settings.REMOTE)
Check if lack of REMOTE in settings cause synchronization disablement.
dataset/ETHPy150Open zlorf/django-synchro/synchro/tests.py/SimpleSynchroTests.test_settings_without_remote