<filename>Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/theming/tests/test_theme_locales.py<gh_stars>1-10
"""
Tests for Theming locales
"""


import os

from django.conf import settings
from django.test import TestCase

from openedx.core.djangolib.testing.utils import skip_unless_lms


class TestComprehensiveThemeLocale(TestCase):
    """
    Test Comprehensive Theme Locales
    """
    @skip_unless_lms
    def test_theme_locale_path_in_settings(self):
        """
        test comprehensive theming paths in settings.
        """
        assert settings.REPO_ROOT / 'themes/conf/locale' in settings.LOCALE_PATHS

    def test_theme_locale_path_exist(self):
        """
        test comprehensive theming directory path exist.
        """
        assert os.path.exists(settings.REPO_ROOT / 'themes/conf/locale')

<filename>Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/theming/tests/test_theme_locales.py<gh_stars>1-10
"""
Tests for Theming locales
"""


import os

from django.conf import settings
from django.test import TestCase

from openedx.core.djangolib.testing.utils import skip_unless_lms


class TestComprehensiveThemeLocale(TestCase):
    """
    Test Comprehensive Theme Locales
    """
    @skip_unless_lms
    def test_theme_locale_path_in_settings(self):
        """
        test comprehensive theming paths in settings.
        """
        assert settings.REPO_ROOT / 'themes/conf/locale' in settings.LOCALE_PATHS

    def test_theme_locale_path_exist(self):
        """
        test comprehensive theming directory path exist.
        """
        assert os.path.exists(settings.REPO_ROOT / 'themes/conf/locale')

Tests for Theming locales Test Comprehensive Theme Locales test comprehensive theming paths in settings. test comprehensive theming directory path exist.