def _reset_avatar_services(): avatar_services.reset() gravatar_service = avatar_services.get_avatar_service( GravatarService.avatar_service_id) avatar_services.enable_service(gravatar_service.avatar_service_id, save=False) avatar_services.set_default_service(gravatar_service, save=False)
def _reset_avatar_services(): avatar_services.reset() gravatar_service = avatar_services.get_avatar_service( GravatarService.avatar_service_id) avatar_services.enable_service(gravatar_service.avatar_service_id, save=False) avatar_services.set_default_service(gravatar_service, save=False)
def tearDown(self): """Restore the SiteConfiguration settings object.""" super(AvatarServicesTestMixin, self).tearDown() avatar_services.reset() siteconfig = SiteConfiguration.objects.get_current() siteconfig.settings = self._original_settings.copy() siteconfig.save(update_fields=('settings',))
def tearDown(self): """Restore the SiteConfiguration settings object.""" super(AvatarServicesTestMixin, self).tearDown() avatar_services.reset() siteconfig = SiteConfiguration.objects.get_current() siteconfig.settings = self._original_settings.copy() siteconfig.save(update_fields=('settings',))
def tearDown(self): avatar_services.reset()
def tearDown(self): super(AvatarServiceHookTests, self).tearDown() avatar_services.reset()
def setUpClass(cls): super(AvatarServiceHookTests, cls).setUpClass() avatar_services.reset()
def tearDown(self): avatar_services.reset()