# HG changeset patch # User Jeff Hammel # Date 1495923824 25200 # Node ID e21f013586d01207b7694bc17258719017c48b74 # Parent 28d76b139fdd3e17c8d12c51763b15ede28bae48 get variables and feed them right back diff -r 28d76b139fdd -r e21f013586d0 tests/test_included.py --- a/tests/test_included.py Sat May 27 14:22:41 2017 -0700 +++ b/tests/test_included.py Sat May 27 15:23:44 2017 -0700 @@ -4,6 +4,7 @@ included_templates = set(['python-package']) +import tempfile from makeitso.makeitso import get_entry_points def test_included_template(): @@ -12,3 +13,13 @@ # ensure template is present in entry points entry_points = get_entry_points() assert included_templates.issubset(entry_points) + + # render each template + for template_name in included_templates: + template = entry_points[template_name]() + + # get the variables + missing = template.missing() + variables = {variable: variable + for variable in missing} +