Mercurial > piecrust2
comparison tests/test_processing_base.py @ 85:3471ffa059b2
Add a `BakeScheduler` to handle build dependencies. Add unit-tests.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 03 Sep 2014 17:27:50 -0700 |
parents | 485682a6de50 |
children | 133845647083 |
comparison
equal
deleted
inserted
replaced
84:b3ce11b2cf36 | 85:3471ffa059b2 |
---|---|
3 from piecrust.processing.base import ProcessorPipeline | 3 from piecrust.processing.base import ProcessorPipeline |
4 from .mockutil import mock_fs, mock_fs_scope | 4 from .mockutil import mock_fs, mock_fs_scope |
5 | 5 |
6 | 6 |
7 def _get_pipeline(fs, **kwargs): | 7 def _get_pipeline(fs, **kwargs): |
8 app = fs.getApp() | 8 app = fs.getApp(cache=False) |
9 mounts = [os.path.join(app.root_dir, 'assets')] | 9 mounts = [os.path.join(app.root_dir, 'assets')] |
10 return ProcessorPipeline(app, mounts, fs.path('counter'), | 10 return ProcessorPipeline(app, mounts, fs.path('counter'), |
11 num_workers=1, **kwargs) | 11 num_workers=1, **kwargs) |
12 | 12 |
13 | 13 |