Mercurial > piecrust2
comparison piecrust/plugins/base.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 | 371731b555ec |
children | e7ca3c577305 |
comparison
equal
deleted
inserted
replaced
978:7e51d14097cb | 979:45ad976712ec |
---|---|
169 return self._componentCache[name] | 169 return self._componentCache[name] |
170 | 170 |
171 all_components = [] | 171 all_components = [] |
172 for plugin in self.plugins: | 172 for plugin in self.plugins: |
173 plugin_components = getattr(plugin, name)(*args) | 173 plugin_components = getattr(plugin, name)(*args) |
174 # Make sure it's a list in case it was an iterator. | |
175 plugin_components = list(plugin_components) | |
174 all_components += plugin_components | 176 all_components += plugin_components |
175 | 177 |
176 if initialize: | 178 if initialize: |
177 for comp in plugin_components: | 179 for comp in plugin_components: |
178 comp.initialize(self.app) | 180 comp.initialize(self.app) |