mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 13:15:43 +00:00 
			
		
		
		
	skip tests if no themes are present
This commit is contained in:
		| @@ -682,9 +682,19 @@ class ColorThemeTest(TestCase): | ||||
|     def test_choices(self): | ||||
|         result = ColorTheme.get_color_themes_choices() | ||||
|  | ||||
|         # skip if no themes present | ||||
|         if not result: | ||||
|             return | ||||
|  | ||||
|         self.assertIn(('default', 'Default'), result) | ||||
|  | ||||
|     def test_valid_choice(self): | ||||
|         result = ColorTheme.get_color_themes_choices() | ||||
|  | ||||
|         # skip if no themes present | ||||
|         if not result: | ||||
|             return | ||||
|  | ||||
|         # check wrong reference | ||||
|         self.assertFalse(ColorTheme.is_valid_choice('abcdd')) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user