Mercurial > piecrust2
diff tests/bakes/test_linker.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 | 27b10024f8d8 |
children | 7fe1151595bf |
line wrap: on
line diff
--- a/tests/bakes/test_linker.yaml Sun Oct 29 22:46:41 2017 -0700 +++ b/tests/bakes/test_linker.yaml Sun Oct 29 22:51:57 2017 -0700 @@ -1,6 +1,6 @@ --- in: - pages/foo.md: | + pages/foo.html: | {%for c in family.children%} {{c.title}} {%endfor%} @@ -8,15 +8,15 @@ foo.html: '' --- in: - pages/foo.md: | + pages/foo.html: | {%for c in family.children-%} {{c.title}} {%endfor%} - pages/foo/one.md: | + pages/foo/one.html: | --- title: One --- - pages/foo/two.md: | + pages/foo/two.html: | --- title: Two --- @@ -26,18 +26,18 @@ Two --- in: - pages/foo.md: | + pages/foo.html: | --- title: Foo --- {%for c in family.siblings-%} {{c.title}}{%if c.is_self%} SELFIE!{%endif%} {%endfor%} - pages/bar.md: | + pages/bar.html: | --- title: Bar --- - pages/other.md: | + pages/other.html: | --- title: Other --- @@ -48,27 +48,27 @@ Other --- in: - pages/foo.md: "---\ntitle: Foo\n---\n" - pages/foo/one.md: | + pages/foo.html: "---\ntitle: Foo\n---\n" + pages/foo/one.html: | {{family.parent.url}} {{family.parent.title}} outfiles: foo/one.html: /foo.html Foo --- in: - pages/foo.md: "---\ntitle: Foo\n---\n" - pages/foo/bar.md: "---\ntitle: Bar\n---\n" - pages/foo/bar/one.md: | + pages/foo.html: "---\ntitle: Foo\n---\n" + pages/foo/bar.html: "---\ntitle: Bar\n---\n" + pages/foo/bar/one.html: | {{family.parent.url}} {{family.parent.title}} - {{family.parent.parent.url}} {{family.parent.parent.title}} + {{family.ancestors[1].url}} {{family.ancestors[1].title}} outfiles: foo/bar/one.html: | /foo/bar.html Bar /foo.html Foo --- in: - pages/foo.md: "---\ntitle: Foo\n---\n" - pages/foo/bar.md: "---\ntitle: Bar\n---\n" - pages/foo/bar/one.md: | + pages/foo.html: "---\ntitle: Foo\n---\n" + pages/foo/bar.html: "---\ntitle: Bar\n---\n" + pages/foo/bar/one.html: | {% for p in family.ancestors -%} {{p.url}} {{p.title}} {% endfor %}