wagtail-foliage
wagtail-foliage copied to clipboard
Utilities for programmatically building page trees in Wagtail.
Ideally the `ContextDecorator` could wrap a whole test case instead of just a method. In this context the behavior would be like setting up the page tree in `setUpTestData` in...
`page_tree` didn't work as a decorator in my last test, which looked something like this: ```python class EmailPageTestCase(TestCase): @page_tree(PAGE_TREE) def test_no_auto_generated_header(self): pass ``` I got this traceback: ```pytb Traceback (most...
It would be great to have real documentation. Here are a few particular things that would be handy to document: - [ ] How to use `build_page_tree` with or without...
We do this automatically as part of the `page_tree` context decorator, but perhaps we should provide a lower-level utility function for doing it