# Path: tests/pods_utils.py
# def clear_app_settings_cache():
#     # Clean up. Django Pods caches settings once loaded. Remove cached settings
#     from silhouette.apps import Silhouette
#     if hasattr(Silhouette.settings, 'PATH'):
#         del Silhouette.settings.PATH
#     if hasattr(Silhouette.settings, 'THEME'):
#         del Silhouette.settings.THEME
#     if hasattr(Silhouette.settings, 'PATTERNS'):
#         del Silhouette.settings.PATTERNS
# 
# Path: tests/mock/forms.py
# class MockForm(forms.Form):
# class MockForm2(forms.Form):
# 
# Path: silhouette/loaders.py
# class DefaultLoader(object):
#     def get_substitutes(self, obj, path, theme):
#     def get_template(self, obj, template_type, path=None, theme=None, patterns=None):
#     def __call__(self, *args, **kwargs):


import unittest
from django.forms.formsets import formset_factory
    from django.template.backends.django import Template
    from django.template.base import Template
    from django.template.base import TemplateDoesNotExist
    from django.template.exceptions import TemplateDoesNotExist
from django.test.utils import override_settings
from .pods_utils import clear_app_settings_cache
from .mock import forms
from silhouette.loaders import loader
THEME = 'loader'

PATTERNS = {
    "test_form": (
        "{path}/{theme}/{form}.html",
    ),
    "test_formset": (
        "{path}/{theme}/{formset}.html",
    ),
    "test_field": (
        "{path}/{theme}/{form}-{field}-{widget}.html",
    ),
    "test_fallback": (
        "{path}/{theme}/does-not-exist-1-{form}.html",
        "{path}/{theme}/does-not-exist-2-{form}.html",
        "{path}/{theme}/fallback-{form}.html",
    ),
    "test_notfound": (
        "{path}/{theme}/does-not-exist-1.html",
        "{path}/{theme}/does-not-exist-2.html",
    ),
}


class TestLoaders(unittest.TestCase):

    def tearDown(self):
        clear_app_settings_cache()

    def test_get_template_for_form(self):

# Path: tests/pods_utils.py
# def clear_app_settings_cache():
#     # Clean up. Django Pods caches settings once loaded. Remove cached settings
#     from silhouette.apps import Silhouette
#     if hasattr(Silhouette.settings, 'PATH'):
#         del Silhouette.settings.PATH
#     if hasattr(Silhouette.settings, 'THEME'):
#         del Silhouette.settings.THEME
#     if hasattr(Silhouette.settings, 'PATTERNS'):
#         del Silhouette.settings.PATTERNS
# 
# Path: tests/mock/forms.py
# class MockForm(forms.Form):
# class MockForm2(forms.Form):
# 
# Path: silhouette/loaders.py
# class DefaultLoader(object):
#     def get_substitutes(self, obj, path, theme):
#     def get_template(self, obj, template_type, path=None, theme=None, patterns=None):
#     def __call__(self, *args, **kwargs):


# Path: tests/test_loaders.py
import unittest
from django.forms.formsets import formset_factory
    from django.template.backends.django import Template
    from django.template.base import Template
    from django.template.base import TemplateDoesNotExist
    from django.template.exceptions import TemplateDoesNotExist
from django.test.utils import override_settings
from .pods_utils import clear_app_settings_cache
from .mock import forms
from silhouette.loaders import loader

THEME = 'loader'

PATTERNS = {
    "test_form": (
        "{path}/{theme}/{form}.html",
    ),
    "test_formset": (
        "{path}/{theme}/{formset}.html",
    ),
    "test_field": (
        "{path}/{theme}/{form}-{field}-{widget}.html",
    ),
    "test_fallback": (
        "{path}/{theme}/does-not-exist-1-{form}.html",
        "{path}/{theme}/does-not-exist-2-{form}.html",
        "{path}/{theme}/fallback-{form}.html",
    ),
    "test_notfound": (
        "{path}/{theme}/does-not-exist-1.html",
        "{path}/{theme}/does-not-exist-2.html",
    ),
}


class TestLoaders(unittest.TestCase):

    def tearDown(self):
        clear_app_settings_cache()

    def test_get_template_for_form(self):

        obj = forms.MockForm()