Mercurial > piecrust2
changeset 1027:bcb7bd54d347
tests: Fix determinism bug in linker test.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Mon, 25 Dec 2017 19:02:05 -0800 |
parents | d85de09f40c7 |
children | 63f118c773ee |
files | tests/bakes/test_linker.yaml |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/bakes/test_linker.yaml Mon Dec 25 19:01:27 2017 -0800 +++ b/tests/bakes/test_linker.yaml Mon Dec 25 19:02:05 2017 -0800 @@ -9,7 +9,7 @@ --- in: pages/foo.html: | - {%for c in family.children-%} + {%for c in family.children|sort(attribute='title')-%} {{c.title}} {%endfor%} pages/foo/one.html: | @@ -31,7 +31,7 @@ title: Foo date: '2010/01/07' --- - {%for c in family.siblings-%} + {%for c in family.siblings|sort(attribute='title')-%} {{c.title}}{%if c.is_self%} SELFIE!{%endif%} {%endfor%} pages/bar.html: |