Mercurial > piecrust2
comparison piecrust/routing.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 | 08e02c2a2a1a |
children | 1ce67d2fae0a |
comparison
equal
deleted
inserted
replaced
978:7e51d14097cb | 979:45ad976712ec |
---|---|
44 self.app = app | 44 self.app = app |
45 self.config = copy.deepcopy(cfg) | 45 self.config = copy.deepcopy(cfg) |
46 | 46 |
47 self.source_name = cfg['source'] | 47 self.source_name = cfg['source'] |
48 self.uri_pattern = cfg['url'].lstrip('/') | 48 self.uri_pattern = cfg['url'].lstrip('/') |
49 self.pass_num = cfg['pass'] | 49 self.pass_num = cfg.get('pass', 1) |
50 | 50 |
51 self.supported_params = self.source.getSupportedRouteParameters() | 51 self.supported_params = self.source.getSupportedRouteParameters() |
52 | 52 |
53 self.pretty_urls = app.config.get('site/pretty_urls') | 53 self.pretty_urls = app.config.get('site/pretty_urls') |
54 self.trailing_slash = app.config.get('site/trailing_slash') | 54 self.trailing_slash = app.config.get('site/trailing_slash') |