Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 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)
Ejemplo n.º 3
0
    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',))
Ejemplo n.º 4
0
    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',))
Ejemplo n.º 5
0
 def tearDown(self):
     avatar_services.reset()
Ejemplo n.º 6
0
 def tearDown(self):
     super(AvatarServiceHookTests, self).tearDown()
     avatar_services.reset()
Ejemplo n.º 7
0
 def setUpClass(cls):
     super(AvatarServiceHookTests, cls).setUpClass()
     avatar_services.reset()
Ejemplo n.º 8
0
 def tearDown(self):
     avatar_services.reset()