Mercurial > piecrust2
diff tests/bakes/test_simple.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 | 60b6c1406fdc |
children |
line wrap: on
line diff
--- a/tests/bakes/test_simple.yaml Sun Oct 29 22:46:41 2017 -0700 +++ b/tests/bakes/test_simple.yaml Sun Oct 29 22:51:57 2017 -0700 @@ -1,13 +1,10 @@ --- in: - posts/2010-01-01_post1.md: 'post one' - pages/about.md: 'URL: {{page.url}}' - pages/_index.md: 'something' -out: - '2010': - '01': - '01': - post1.html: 'post one' + posts/2010-01-01_post1.html: 'post one' + pages/about.html: 'URL: {{page.url}}' + pages/_index.html: 'something' +outfiles: + 2010/01/01/post1.html: 'post one' about.html: 'URL: /about.html' index.html: 'something' --- @@ -15,19 +12,16 @@ site: root: /whatever in: - posts/2010-01-01_post1.md: 'post one' - pages/about.md: 'URL: {{page.url}}' - pages/_index.md: 'something' -out: - '2010': - '01': - '01': - post1.html: 'post one' + posts/2010-01-01_post1.html: 'post one' + pages/about.html: 'URL: {{page.url}}' + pages/_index.html: 'something' +outfiles: + 2010/01/01/post1.html: 'post one' about.html: 'URL: /whatever/about.html' index.html: 'something' --- in: - pages/foo.md: | + pages/foo.html: | This page is {{page.url}} outfiles: foo.html: | @@ -37,7 +31,7 @@ site: author: Amélie Poulain in: - pages/foo.md: 'Site by {{site.author}}' + pages/foo.html: 'Site by {{site.author}}' outfiles: foo.html: 'Site by Amélie Poulain'