Mercurial > piecrust2
diff tests/test_sources_base.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 | 45ad976712ec |
children |
line wrap: on
line diff
--- a/tests/test_sources_base.py Fri Nov 03 23:14:56 2017 -0700 +++ b/tests/test_sources_base.py Sun Nov 19 14:29:17 2017 -0800 @@ -66,7 +66,7 @@ with mock_fs_scope(fs): app = fs.getApp() s = app.getSource('test') - item = s.findContent({'slug': ref_path}) + item = s.findContentFromRoute({'slug': ref_path}) assert item is not None assert os.path.relpath(item.spec, app.root_dir) == \ slashfix(expected_path)