diff tests/bakes/test_simple_categories.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 7705b3d981ca
children
line wrap: on
line diff
--- a/tests/bakes/test_simple_categories.yaml	Sun Oct 29 22:46:41 2017 -0700
+++ b/tests/bakes/test_simple_categories.yaml	Sun Oct 29 22:51:57 2017 -0700
@@ -3,45 +3,39 @@
     site:
         category_url: cat/%category%
 in:
-    posts/2015-03-01_post01.md: |
+    posts/2015-03-01_post01.html: |
       ---
       title: Post 01
       category: foo
       ---
-    posts/2015-03-02_post02.md: |
+    posts/2015-03-02_post02.html: |
       ---
       title: Post 02
       category: bar
       ---
-    posts/2015-03-03_post03.md: |
+    posts/2015-03-03_post03.html: |
       ---
       title: Post 03
       category: foo
       ---
-    pages/_category.md: |
+    templates/_category.html: |
       Pages in {{category}}
       {% for p in pagination.posts -%}
       {{p.title}}
       {% endfor %}
-    pages/link.md: 'Link: {{pccaturl("bar")}}'
-    pages/_index.md: ''
-out:
+    pages/link.html: 'Link: {{pccaturl("bar")}}'
+    pages/_index.html: ''
+outfiles:
     index.html: ''
-    '2015':
-        '03':
-            '01':
-                post01.html: ''
-            '02':
-                post02.html: ''
-            '03':
-                post03.html: ''
+    '2015/03/01/post01.html': ''
+    '2015/03/02/post02.html': ''
+    '2015/03/03/post03.html': ''
     link.html: 'Link: /cat/bar.html'
-    cat:
-        foo.html: |
-          Pages in foo
-          Post 03
-          Post 01
-        bar.html: |
-          Pages in bar
-          Post 02
+    'cat/foo.html': |
+        Pages in foo
+        Post 03
+        Post 01
+    'cat/bar.html': |
+        Pages in bar
+        Post 02