From 92279b2f8f707f51fa5312b2210c3f95105c1a0c Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 12 Mar 2022 01:50:05 +0100 Subject: [PATCH] remove theme test --- InvenTree/common/tests.py | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/InvenTree/common/tests.py b/InvenTree/common/tests.py index 1a8473a95e..c4298f237e 100644 --- a/InvenTree/common/tests.py +++ b/InvenTree/common/tests.py @@ -9,7 +9,7 @@ from django.contrib.auth import get_user_model from django.urls import reverse from InvenTree.api_tester import InvenTreeAPITestCase -from .models import InvenTreeSetting, WebhookEndpoint, WebhookMessage, NotificationEntry, ColorTheme +from .models import InvenTreeSetting, WebhookEndpoint, WebhookMessage, NotificationEntry from .api import WebhookView CONTENT_TYPE_JSON = 'application/json' @@ -309,26 +309,3 @@ class LoadingTest(TestCase): # now it should be false again self.assertFalse(common.models.InvenTreeSetting.get_setting('SERVER_RESTART_REQUIRED')) - - -class ColorThemeTest(TestCase): - """ - Tests for ColorTheme - """ - - def test_choices(self): - result = ColorTheme.get_color_themes_choices() - - self.assertIn(('default', 'Default'), result) - - def test_valid_choice(self): - # check wrong reference - self.assertFalse(ColorTheme.is_valid_choice('abcdd')) - - # create themes - aa = ColorTheme.objects.create(user='aa', name='testname') - ab = ColorTheme.objects.create(user='ab', name='darker') - - # check valid theme - self.assertFalse(ColorTheme.is_valid_choice(aa)) - self.assertTrue(ColorTheme.is_valid_choice(ab))