Mercurial > piecrust2
diff tests/bakes/test_data_provider.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 | 42efc3634763 |
children |
line wrap: on
line diff
--- a/tests/bakes/test_data_provider.yaml Sun Oct 29 22:46:41 2017 -0700 +++ b/tests/bakes/test_data_provider.yaml Sun Oct 29 22:51:57 2017 -0700 @@ -1,10 +1,24 @@ --- in: + pages/_index.html: | + --- + date: '2010/01/05' + --- + The index pages/foo.md: | + --- + date: '2010/01/08' + --- Foo! pages/bar.md: | + --- + date: '2010/01/09' + --- Bar! - pages/allpages.md: | + pages/allpages.html: | + --- + date: '2010/01/10' + --- {% for p in site.pages -%} {{p.url}} {% endfor %} @@ -19,7 +33,7 @@ posts/2016-06-01_one.md: "One!" posts/2016-06-02_two.md: "Two!" posts/2016-06-03_three.md: "Three!" - pages/_index.md: | + pages/_index.html: | {% for p in blog.posts -%} {{p.url}} {% endfor %} @@ -36,7 +50,7 @@ posts/2016-06-01_one.md: "One!" posts/2016-06-02_two.md: "Two!" posts/2016-06-03_three.md: "Three!" - pages/_index.md: | + pages/_index.html: | {{blog.subtitle}} {% for p in blog.posts -%} {{p.url}} @@ -56,7 +70,7 @@ posts/aaa/2016-06-02_two.md: "Two!" posts/xyz/2016-06-01_one-other.md: "One Other!" posts/xyz/2016-06-02_two-other.md: "Two Other!" - pages/_index.md: | + pages/_index.html: | {% for p in aaa.posts -%} {{p.url}} {% endfor %}