Mercurial > piecrust2
comparison tests/test_processing_tree.py @ 974:72f17534d58e
tests: First pass on making unit tests work again.
- Fix all imports
- Add more helper functions to work with mock file-systems
- Simplify some code by running chef directly on the mock FS
- Fix a couple tests
| author | Ludovic Chabant <ludovic@chabant.com> |
|---|---|
| date | Tue, 17 Oct 2017 01:07:30 -0700 |
| parents | f485ba500df3 |
| children |
comparison
equal
deleted
inserted
replaced
| 973:8419daaa7a0e | 974:72f17534d58e |
|---|---|
| 1 from piecrust.processing.base import CopyFileProcessor, SimpleFileProcessor | 1 from piecrust.processing.base import SimpleFileProcessor |
| 2 from piecrust.processing.tree import ProcessingTreeBuilder, ProcessingTreeNode | 2 from piecrust.processing.copy import CopyFileProcessor |
| 3 from piecrust.pipelines._proctree import ( | |
| 4 ProcessingTreeBuilder, ProcessingTreeNode) | |
| 3 | 5 |
| 4 | 6 |
| 5 class MockProcessor(SimpleFileProcessor): | 7 class MockProcessor(SimpleFileProcessor): |
| 6 def __init__(self): | 8 def __init__(self): |
| 7 super(MockProcessor, self).__init__({'mock': 'out'}) | 9 super(MockProcessor, self).__init__({'mock': 'out'}) |
