Skip to content

Instantly share code, notes, and snippets.

View eoinof's full-sized avatar

Eoin ó Fearghail eoinof

View GitHub Profile
@magopian
magopian / tests.py
Created November 16, 2012 10:55
Unit test to validate django templates
class TemplatesTest(TestCase):
def test_templates(self):
"""Templates can compile properly and there's no mismatched tags"""
# get app template dirs
template_dirs = []
apps = [app for app in settings.INSTALLED_APPS
if app.startswith('rh2')]
for app in apps:
mod = import_module(app)