diff tests/test_baking_baker.py @ 674:f987b29d6fab

tests: Add ability to run tests with a theme site. * Remove automatic creating of `config.yml`. * Add option to specify `theme_config` in YAML tests.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 06 Mar 2016 23:48:01 -0800
parents 34e57d4b97e2
children c6035785dbfc
line wrap: on
line diff
--- a/tests/test_baking_baker.py	Sun Mar 06 23:41:35 2016 -0800
+++ b/tests/test_baking_baker.py	Sun Mar 06 23:48:01 2016 -0800
@@ -53,6 +53,7 @@
 
 def test_removed():
     fs = (mock_fs()
+            .withConfig()
             .withPage('pages/foo.md', {'layout': 'none', 'format': 'none'}, 'a foo page')
             .withPage('pages/_index.md', {'layout': 'none', 'format': 'none'}, "something"))
     with mock_fs_scope(fs):
@@ -77,6 +78,7 @@
 
 def test_record_version_change():
     fs = (mock_fs()
+            .withConfig()
             .withPage('pages/foo.md', {'layout': 'none', 'format': 'none'}, 'a foo page'))
     with mock_fs_scope(fs):
         out_dir = fs.path('kitchen/_counter')