Mercurial > piecrust2
comparison piecrust/serving/server.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 | b447c24bc8d4 |
children | e94737572542 |
comparison
equal
deleted
inserted
replaced
978:7e51d14097cb | 979:45ad976712ec |
---|---|
100 return response | 100 return response |
101 | 101 |
102 # Create the app for this request. | 102 # Create the app for this request. |
103 app = get_app_for_server(self.appfactory, | 103 app = get_app_for_server(self.appfactory, |
104 root_url=self.root_url) | 104 root_url=self.root_url) |
105 if (app.config.get('site/enable_debug_info') and | 105 if (app.config.get('server/enable_debug_info') and |
106 self.enable_debug_info and | 106 self.enable_debug_info and |
107 '!debug' in request.args): | 107 '!debug' in request.args): |
108 app.config.set('site/show_debug_info', True) | 108 app.config.set('site/show_debug_info', True) |
109 | 109 |
110 # Let's try to serve a page. | 110 # Let's try to serve a page. |