Mercurial > piecrust2
view tests/bakes/test_multiblog.yaml @ 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 | 3f01f63b7247 |
children |
line wrap: on
line source
--- config: site: blogs: [one, two] in: posts/one/2016-01-01_post1.html: '' posts/two/2016-01-02_post2.html: '' pages/foo-one.html: "Link: {{pconeposturl(2016, 01, 01, 'post1')}}" pages/foo-two.html: "Link: {{pctwoposturl(2016, 01, 02, 'post2')}}" outfiles: foo-one.html: "Link: /one/2016/01/01/post1.html" foo-two.html: "Link: /two/2016/01/02/post2.html" --- config: site: blogs: [one, two] one: func_prefix: pc1 two: func_prefix: pc2 in: posts/one/2016-01-01_post1.html: '' posts/two/2016-01-02_post2.html: '' pages/foo-one.html: "---\nblog: one\n---\nLink: {{pc1posturl(2016, 01, 01, 'post1', 'one')}}" pages/foo-two.html: "---\nblog: two\n---\nLink: {{pc2posturl(2016, 01, 02, 'post2', 'two')}}" outfiles: foo-one.html: "Link: /one/2016/01/01/post1.html" foo-two.html: "Link: /two/2016/01/02/post2.html"