Added possibility to customize the default logo color

This commit is contained in:
Fabio Caccamo
2017-05-24 11:44:46 +02:00
parent b449a1140c
commit 8a9842c219
7 changed files with 42 additions and 61 deletions
-19
View File
@@ -4,7 +4,6 @@ from django.conf import settings
from django.test import TestCase
from django.template import Context, Template
import os
import random
import shutil
@@ -77,24 +76,6 @@ class AdminInterfaceTestCase(TestCase):
Theme.objects.filter( pk = Theme.get_active_theme().pk ).delete()
self.__test_active_theme()
def test_default_theme_logo_created_if_deleted(self):
Theme.objects.all().delete()
theme = Theme.get_active_theme()
theme.logo = ''
theme.save()
theme = Theme.get_active_theme()
self.assertNotEqual( theme.logo, None )
def test_default_theme_logo_not_created_if_not_deleted(self):
Theme.objects.all().delete()
theme = Theme.get_active_theme()
self.assertNotEqual( theme.logo, None )
logo_url = theme.logo.url
theme = Theme.get_active_theme()
self.assertEqual( theme.logo.url, logo_url )
def test_last_theme_activated_on_multiple_themes_created(self):
Theme.objects.all().delete()