Provide a first class Open edX theme

LEARNER-2513
This commit is contained in:
Andy Armstrong
2017-09-07 13:03:41 -04:00
parent c9f75f6bc8
commit 94add3a49f
4 changed files with 45 additions and 2 deletions

View File

@@ -22,11 +22,12 @@ class TestHelpers(TestCase):
Tests template paths are returned from enabled theme.
"""
expected_themes = [
Theme('test-theme', 'test-theme', get_theme_base_dir('test-theme')),
Theme('red-theme', 'red-theme', get_theme_base_dir('red-theme')),
Theme('edge.edx.org', 'edge.edx.org', get_theme_base_dir('edge.edx.org')),
Theme('edx.org', 'edx.org', get_theme_base_dir('edx.org')),
Theme('open-edx', 'open-edx', get_theme_base_dir('open-edx')),
Theme('red-theme', 'red-theme', get_theme_base_dir('red-theme')),
Theme('stanford-style', 'stanford-style', get_theme_base_dir('stanford-style')),
Theme('test-theme', 'test-theme', get_theme_base_dir('test-theme')),
]
actual_themes = get_themes()
self.assertItemsEqual(expected_themes, actual_themes)