Migrate from basictag to simple_tag
Review Request #7910 — Created Jan. 25, 2016 and submitted — Latest diff uploaded
Now that
@basictagis becoming deprecated in Djblets 0.10, we are
migrating all usage of@basictagto Django's@Library.simple_tag
decorator. To ensure that everything works correcty, unit tests have
been added to test all tags that previously used@basictagto
ensure that they will continue to render correctly.Several testing utilities have been added in this patch to facilitate
this migration. First off is theMemoryTemplateLoader, which loads
template sources from an in-memory string. This is to be used in
conjunction with the context managers provided by
djblets.template.loaders.util:
add_template_loader, which temporarily adds a template source
loader; andreplace_template_loaders, which temporarily replaces all the
template source loaders.
Ran unit tests.