Mercurial > piecrust2
annotate 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 |
rev | line source |
---|---|
568
6b6c5442c790
bug: Correctly handle root URLs with special characters.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
1 --- |
6b6c5442c790
bug: Correctly handle root URLs with special characters.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
2 config: |
6b6c5442c790
bug: Correctly handle root URLs with special characters.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
3 site: |
6b6c5442c790
bug: Correctly handle root URLs with special characters.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
4 root: /~john/public/ |
6b6c5442c790
bug: Correctly handle root URLs with special characters.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
5 in: |
979
45ad976712ec
tests: Big push to get the tests to pass again.
Ludovic Chabant <ludovic@chabant.com>
parents:
568
diff
changeset
|
6 pages/about.html: 'URL: {{page.url}}, LINK: {{pcurl("missing")}}' |
45ad976712ec
tests: Big push to get the tests to pass again.
Ludovic Chabant <ludovic@chabant.com>
parents:
568
diff
changeset
|
7 pages/_index.html: 'URL: {{page.url}}' |
45ad976712ec
tests: Big push to get the tests to pass again.
Ludovic Chabant <ludovic@chabant.com>
parents:
568
diff
changeset
|
8 outfiles: |
1169
978ed6deea91
tests: Add ability to test different expected outputs based on Python version.
Ludovic Chabant <ludovic@chabant.com>
parents:
979
diff
changeset
|
9 "{py>=3.7}about.html": 'URL: /~john/public/about.html, LINK: /~john/public/missing.html' |
978ed6deea91
tests: Add ability to test different expected outputs based on Python version.
Ludovic Chabant <ludovic@chabant.com>
parents:
979
diff
changeset
|
10 "{py>=3.7}index.html": 'URL: /~john/public/' |
978ed6deea91
tests: Add ability to test different expected outputs based on Python version.
Ludovic Chabant <ludovic@chabant.com>
parents:
979
diff
changeset
|
11 "{py<3.7}about.html": 'URL: /%7Ejohn/public/about.html, LINK: /%7Ejohn/public/missing.html' |
978ed6deea91
tests: Add ability to test different expected outputs based on Python version.
Ludovic Chabant <ludovic@chabant.com>
parents:
979
diff
changeset
|
12 "{py<3.7}index.html": 'URL: /%7Ejohn/public/' |
978ed6deea91
tests: Add ability to test different expected outputs based on Python version.
Ludovic Chabant <ludovic@chabant.com>
parents:
979
diff
changeset
|
13 --- |
978ed6deea91
tests: Add ability to test different expected outputs based on Python version.
Ludovic Chabant <ludovic@chabant.com>
parents:
979
diff
changeset
|
14 config: |
978ed6deea91
tests: Add ability to test different expected outputs based on Python version.
Ludovic Chabant <ludovic@chabant.com>
parents:
979
diff
changeset
|
15 site: |
978ed6deea91
tests: Add ability to test different expected outputs based on Python version.
Ludovic Chabant <ludovic@chabant.com>
parents:
979
diff
changeset
|
16 pretty_urls: true |
978ed6deea91
tests: Add ability to test different expected outputs based on Python version.
Ludovic Chabant <ludovic@chabant.com>
parents:
979
diff
changeset
|
17 in: |
978ed6deea91
tests: Add ability to test different expected outputs based on Python version.
Ludovic Chabant <ludovic@chabant.com>
parents:
979
diff
changeset
|
18 pages/users/~john.html: 'URL: {{page.url}}' |
978ed6deea91
tests: Add ability to test different expected outputs based on Python version.
Ludovic Chabant <ludovic@chabant.com>
parents:
979
diff
changeset
|
19 pages/users/~john/bio.html: 'URL: {{page.url}}' |
978ed6deea91
tests: Add ability to test different expected outputs based on Python version.
Ludovic Chabant <ludovic@chabant.com>
parents:
979
diff
changeset
|
20 outfiles: |
978ed6deea91
tests: Add ability to test different expected outputs based on Python version.
Ludovic Chabant <ludovic@chabant.com>
parents:
979
diff
changeset
|
21 "{py>=3.7}users/~john/index.html": 'URL: /users/~john' |
978ed6deea91
tests: Add ability to test different expected outputs based on Python version.
Ludovic Chabant <ludovic@chabant.com>
parents:
979
diff
changeset
|
22 "{py>=3.7}users/~john/bio/index.html": 'URL: /users/~john/bio' |
978ed6deea91
tests: Add ability to test different expected outputs based on Python version.
Ludovic Chabant <ludovic@chabant.com>
parents:
979
diff
changeset
|
23 "{py<3.7}users/~john/index.html": 'URL: /users/%7Ejohn' |
978ed6deea91
tests: Add ability to test different expected outputs based on Python version.
Ludovic Chabant <ludovic@chabant.com>
parents:
979
diff
changeset
|
24 "{py<3.7}users/~john/bio/index.html": 'URL: /users/%7Ejohn/bio' |