Mercurial > piecrust2
diff tests/bakes/test_assets.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 | eb3ace870708 |
children |
line wrap: on
line diff
--- a/tests/bakes/test_assets.yaml Sun Oct 29 22:46:41 2017 -0700 +++ b/tests/bakes/test_assets.yaml Sun Oct 29 22:51:57 2017 -0700 @@ -1,15 +1,11 @@ --- in: posts/2010-01-01_post1-assets/blah.png: 'fake image' - posts/2010-01-01_post1.md: 'my image: {{assets.blah}}' - pages/_index.md: 'something' -out: - '2010': - '01': - '01': - post1.html: 'my image: /2010/01/01/post1/blah.png' - post1: - blah.png: 'fake image' + posts/2010-01-01_post1.html: 'my image: {{assets.blah}}' + pages/_index.html: 'something' +outfiles: + 2010/01/01/post1.html: 'my image: /2010/01/01/post1/blah.png' + 2010/01/01/post1/blah.png: 'fake image' index.html: 'something' --- config: @@ -17,14 +13,10 @@ pretty_urls: true in: posts/2010-01-01_post1-assets/blah.png: 'fake image' - posts/2010-01-01_post1.md: 'my image: {{assets.blah}}' - pages/_index.md: 'something' -out: - '2010': - '01': - '01': - 'post1': - index.html: 'my image: /2010/01/01/post1/blah.png' - blah.png: 'fake image' + posts/2010-01-01_post1.html: 'my image: {{assets.blah}}' + pages/_index.html: 'something' +outfiles: + 2010/01/01/post1/index.html: 'my image: /2010/01/01/post1/blah.png' + 2010/01/01/post1/blah.png: 'fake image' index.html: 'something'