Mercurial > piecrust2
comparison tests/bakes/test_special_root.yaml @ 1169:978ed6deea91
tests: Add ability to test different expected outputs based on Python version.
Similar to the previous change, there was also a change in what gets escaped
by `urllib.parse.quote` (as in: the tilde sign ('~') stopped being escaped).
So now we need to be able to test different outputs in the tests, yay again.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Fri, 04 Oct 2019 11:15:11 -0700 |
parents | 45ad976712ec |
children |
comparison
equal
deleted
inserted
replaced
1168:10520472cc73 | 1169:978ed6deea91 |
---|---|
4 root: /~john/public/ | 4 root: /~john/public/ |
5 in: | 5 in: |
6 pages/about.html: 'URL: {{page.url}}, LINK: {{pcurl("missing")}}' | 6 pages/about.html: 'URL: {{page.url}}, LINK: {{pcurl("missing")}}' |
7 pages/_index.html: 'URL: {{page.url}}' | 7 pages/_index.html: 'URL: {{page.url}}' |
8 outfiles: | 8 outfiles: |
9 about.html: 'URL: /%7Ejohn/public/about.html, LINK: /%7Ejohn/public/missing.html' | 9 "{py>=3.7}about.html": 'URL: /~john/public/about.html, LINK: /~john/public/missing.html' |
10 index.html: 'URL: /%7Ejohn/public/' | 10 "{py>=3.7}index.html": 'URL: /~john/public/' |
11 "{py<3.7}about.html": 'URL: /%7Ejohn/public/about.html, LINK: /%7Ejohn/public/missing.html' | |
12 "{py<3.7}index.html": 'URL: /%7Ejohn/public/' | |
13 --- | |
14 config: | |
15 site: | |
16 pretty_urls: true | |
17 in: | |
18 pages/users/~john.html: 'URL: {{page.url}}' | |
19 pages/users/~john/bio.html: 'URL: {{page.url}}' | |
20 outfiles: | |
21 "{py>=3.7}users/~john/index.html": 'URL: /users/~john' | |
22 "{py>=3.7}users/~john/bio/index.html": 'URL: /users/~john/bio' | |
23 "{py<3.7}users/~john/index.html": 'URL: /users/%7Ejohn' | |
24 "{py<3.7}users/~john/bio/index.html": 'URL: /users/%7Ejohn/bio' |