Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Macro Polo #12

Closed
willbarton opened this issue Dec 21, 2015 · 0 comments
Closed

Macro Polo #12

willbarton opened this issue Dec 21, 2015 · 0 comments
Labels

Comments

@willbarton
Copy link
Member

Macro Polo is a Python library for unit testing template macros. It is meant to test that the template output is as expected, and can be contrasted with functional/browser testing of the functionality of the template output. Macro Polo allows test specification to happen in Python or in JSON.

There are currently two issues open that would increase the usefulness of Macro Polo that could be addressed. The first, cfpb/macropolo#4, is about testing private Jinja2 macros. Currently Macro Polo can only test public macros. The second, cfpb/macropolo#5, is about possible pre-processing class selectors to make them a bit less awkward before passing them to BeautifulSoup.

Additionally, it would be great if other template systems could be supported, like plain Django templates.

This will take some knowledge of Jinja2 and Python, possibly Django if you want to work on Django templates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants