Mercurial > piecrust2
comparison piecrust/pipelines/_pagerecords.py @ 979:45ad976712ec
tests: Big push to get the tests to pass again.
- Lots of fixes everywhere in the code.
- Try to handle debug logging in the multiprocessing worker pool when running in pytest. Not perfect, but usable for now.
- Replace all `.md` test files with `.html` since now a auto-format extension always sets the format.
- Replace `out` with `outfiles` in most places since now blog archives are added to the bake output and I don't want to add expected outputs for blog archives everywhere.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 29 Oct 2017 22:51:57 -0700 |
parents | abc52a6262a1 |
children | 8adc27285d93 |
comparison
equal
deleted
inserted
replaced
978:7e51d14097cb | 979:45ad976712ec |
---|---|
6 FLAG_NONE = 0 | 6 FLAG_NONE = 0 |
7 FLAG_BAKED = 2**0 | 7 FLAG_BAKED = 2**0 |
8 FLAG_FORCED_BY_SOURCE = 2**1 | 8 FLAG_FORCED_BY_SOURCE = 2**1 |
9 FLAG_FORCED_BY_NO_PREVIOUS = 2**2 | 9 FLAG_FORCED_BY_NO_PREVIOUS = 2**2 |
10 FLAG_FORCED_BY_PREVIOUS_ERRORS = 2**3 | 10 FLAG_FORCED_BY_PREVIOUS_ERRORS = 2**3 |
11 FLAG_FORMATTING_INVALIDATED = 2**4 | 11 FLAG_FORCED_BY_GENERAL_FORCE = 2**4 |
12 FLAG_FORMATTING_INVALIDATED = 2**5 | |
12 | 13 |
13 def __init__(self, out_uri, out_path): | 14 def __init__(self, out_uri, out_path): |
14 self.out_uri = out_uri | 15 self.out_uri = out_uri |
15 self.out_path = out_path | 16 self.out_path = out_path |
16 self.flags = self.FLAG_NONE | 17 self.flags = self.FLAG_NONE |
131 SubPagePipelineRecordEntry.FLAG_BAKED: 'baked', | 132 SubPagePipelineRecordEntry.FLAG_BAKED: 'baked', |
132 SubPagePipelineRecordEntry.FLAG_FORCED_BY_SOURCE: 'forced by source', | 133 SubPagePipelineRecordEntry.FLAG_FORCED_BY_SOURCE: 'forced by source', |
133 SubPagePipelineRecordEntry.FLAG_FORCED_BY_NO_PREVIOUS: 'forced b/c new', | 134 SubPagePipelineRecordEntry.FLAG_FORCED_BY_NO_PREVIOUS: 'forced b/c new', |
134 SubPagePipelineRecordEntry.FLAG_FORCED_BY_PREVIOUS_ERRORS: | 135 SubPagePipelineRecordEntry.FLAG_FORCED_BY_PREVIOUS_ERRORS: |
135 'forced by errors', | 136 'forced by errors', |
137 SubPagePipelineRecordEntry.FLAG_FORCED_BY_GENERAL_FORCE: | |
138 'manually forced', | |
136 SubPagePipelineRecordEntry.FLAG_FORMATTING_INVALIDATED: | 139 SubPagePipelineRecordEntry.FLAG_FORMATTING_INVALIDATED: |
137 'formatting invalidated' | 140 'formatting invalidated' |
138 } | 141 } |
139 | 142 |
140 | 143 |