comparison tests/bakes/test_theme.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 3df808b133f8
children
comparison
equal deleted inserted replaced
978:7e51d14097cb 979:45ad976712ec
3 site: 3 site:
4 title: "Some Test" 4 title: "Some Test"
5 default_page_layout: 'none' 5 default_page_layout: 'none'
6 foo: bar 6 foo: bar
7 in: 7 in:
8 pages/foo.md: "This is: {{foo}}, with no template" 8 pages/foo.html: "This is: {{foo}}, with no template"
9 theme/theme_config.yml: "name: testtheme" 9 theme/theme_config.yml: "name: testtheme"
10 theme/pages/_index.md: "This is {{site.title}} by {{name}}, with theme template" 10 theme/pages/_index.html: "This is {{site.title}} by {{name}}, with theme template"
11 theme/templates/default.html: "THEME: {{content}}" 11 theme/templates/default.html: "THEME: {{content}}"
12 out: 12 outfiles:
13 index.html: "THEME: This is Some Test by testtheme, with theme template" 13 index.html: "THEME: This is Some Test by testtheme, with theme template"
14 foo.html: "This is: bar, with no template" 14 foo.html: "This is: bar, with no template"
15 --- 15 ---
16 config: 16 config:
17 site: 17 site:
18 default_page_layout: 'custom' 18 default_page_layout: 'custom'
19 in: 19 in:
20 pages/foo.md: "FOO" 20 pages/foo.html: "FOO"
21 pages/bar.md: "---\nlayout: blah\n---\nBAR" 21 pages/bar.html: "---\nlayout: blah\n---\nBAR"
22 templates/custom.html: "CUSTOM: {{content}}" 22 templates/custom.html: "CUSTOM: {{content}}"
23 theme/theme_config.yml: "site: {sources: {theme_pages: {default_layout: blah}}}" 23 theme/theme_config.yml: "site: {sources: {theme_pages: {default_layout: blah}}}"
24 theme/pages/_index.md: "theme index" 24 theme/pages/_index.html: "theme index"
25 theme/pages/about.md: "about" 25 theme/pages/about.html: "about"
26 theme/templates/blah.html: "THEME: {{content}}" 26 theme/templates/blah.html: "THEME: {{content}}"
27 out: 27 outfiles:
28 index.html: "THEME: theme index" 28 index.html: "THEME: theme index"
29 about.html: "THEME: about" 29 about.html: "THEME: about"
30 foo.html: "CUSTOM: FOO" 30 foo.html: "CUSTOM: FOO"
31 bar.html: "THEME: BAR" 31 bar.html: "THEME: BAR"
32 32