zsiciarz/django-envelope — pull request #16 by zlorf (2012-10-19 22:29:01+00:00)
Title: Templates in tests

1. You forgot to include test templates in distribution (MANIFEST.in lacks a proper line)

2. But even if you included them, tests would fail if run via ``$ ./manage.py test`` together with other apps. The reason is lack of ``layout.html`` template, caused by template loader not seeking in envelope/tests/templates.

3. But even if you patch ``TEMPLATE_DIRS`` in tests (not in runtests.py configuration), tests can also fail. In my custom ``contact.html`` template there was some url reversion, and it raises error since no such url-name was in test urls. Remedy: use app-bundled templates.

All those problems are resolved in this patch.