Mercurial > piecrust2
comparison tests/mockutil.py @ 989:8adc27285d93
bake: Big pass on bake performance.
- Reduce the amount of data passed between processes.
- Make inter-process data simple objects to make it easier to test with
alternatives to pickle.
- Make sources have the basic requirement to be able to find a content item
from an item spec (path).
- Make Hoedown the default Markdown formatter.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 19 Nov 2017 14:29:17 -0800 |
parents | 72f17534d58e |
children |
comparison
equal
deleted
inserted
replaced
988:f83ae0a5d793 | 989:8adc27285d93 |
---|---|
11 | 11 |
12 def get_simple_content_item(app, slug): | 12 def get_simple_content_item(app, slug): |
13 src = app.getSource('pages') | 13 src = app.getSource('pages') |
14 assert src is not None | 14 assert src is not None |
15 | 15 |
16 item = src.findContent({'slug': slug}) | 16 item = src.findContentFromRoute({'slug': slug}) |
17 assert item is not None | 17 assert item is not None |
18 return item | 18 return item |
19 | 19 |
20 | 20 |
21 def get_simple_page(app, slug): | 21 def get_simple_page(app, slug): |